I'm doing a physics simulation that requires consistent generation of random numbers. This program must run for many hours (even days) nonstop, and it needs roughly 100000 random numbers per minute. It also needs to be used multiple times for multiple trials. Because of this, I'm afraid that simply using Math.random() isn't random enough for my purposes. Here are some of the things that I need help on:
How can I make good seeds that can allow me to run multiple simulations with very random numbers?
Because this program needs to run for a long time, will the random number generator go "stale" after a while and start returning more predictable numbers? In other words, do I have to reset my seed after some time?
Thanks in advance!
Tags: