View Single Post
Old Apr 9th, 2008, 10:50 PM   #5
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Re: better randomization?

If you seed the random number generator every time you call your functions, and each call is milliseconds apart, you're seeding it with a similar value and resetting it. Therefore, rand()'s return values will actually be less random, as they're all first values generated from very similar seeds.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote