quote:Original post by OmniBrain
Every so called random function that isn''t able to theoretical produce the same number an infinite times in a row isn''t random...
I think you mean "arbitrarily many" rather than "infinite" here... there''s a big difference!
The first AP was correct. Only call srand once at start-up (or once per level, or whatever). It can help debugging if you DON''T seed to a random value, that way you can record keyboard input and playback the same input & the same random numbers to do a demo, or debugging.
"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley
"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley