Programming and Random
- One of the problems with programming with randomness is that
you often can't reproduce a bug.
- The standard way to get repeatable systems is to use a seed
when you create the random number generator.
- When you run it again, you get the same random numbers in the
same order.
- If you change the seed, you get new random numbers.
- When you're done debugging, you can remove the seed and every
time you run, you'll get a new set of random numbers.