From: Orion Hunter Date: 2003-07-30T05:07:37+09:00 Subject: Re: Generating random numbers? >For example, this code (untested) I would expect >to produce such repetition: > > 100.times do > Kernel.srand(Time.now.usec) > puts rand(100) > end I completely understand why this would result in sequentially repeated numbers. However, that is not what my code did... rather it called Kernel.srand( Time.now.usec ) once in a completely unrelated function (unrelated, but it was indeed called before the other function which was giving me the duplicates). If I ever figure out why, I'll post it here. _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail