Get previous random numbers

Started by
0 comments, last by griffenjam 22 years, 5 months ago
Is is possiable to work backwards through previous random numbers? For example lets say you want to create a time reverse effect on random events. Do I have to use a FILO buffer to save all my random numbers, or can I use the current seed to figure out the last random number and so on...? Jason Mickela ICQ : 873518 E-Mail: jmickela@sbcglobal.net ------------------------------ "Evil attacks from all sides but the greatest evil attacks from within." Me ------------------------------
"The paths of glory lead but to the grave." - Thomas GrayMy Stupid BlogMy Online Photo Gallery
Advertisement
If you reimplement the rand() function, yes. By default, though, there''s no going back. The source for both GCC and MSVC rand() functions was posted recently.

This topic is closed to new replies.

Advertisement