View Single Post

   
  #1 (permalink)  
Old 02-28-2008, 08:37 AM
Jim Michaels
 
Posts: n/a
Default RAND() generating same number in rapid sequence

I am using RAND() in rapid sequence, possibly on different connections.
I expected to get different numbers from RAND(). I didn't. I get the same
number within a given timeframe - it's like it's driven entirely by
microtime.
Am I stuck?

I need different numbers for images. The only solution I can think of is to
get 'the next image' from the database. to make it look random. but that's
not very random.

any ideas?


Reply With Quote