This is not a coding question, but am hoping that someone has come across this in the forums here. I am using Python to run some simulations. I need to run many replications using different random number seeds. I have two questions:
- Are negative numbers okay as seeds?
- Should I keep some distance in the seeds?
Currently I am using random.org to create 50 numbers between -100000 and +100000, which I use as seeds. Is this okay?
Thanks.
Is it important that your simulations are repeatable? The canonical way to seed a RNG is by using the current system time, and indeed this is random’s default behaviour:
I would only deviate from this behaviour if repeatability is important. If it is important, then your random.org seeds are a reasonable solution.
No. For a good quality RNG, the choice of seed will not affect the quality of the output. A set of seeds [1,2,3,4,5,6,7,8,9,10] should result in the same quality of randomness as any random selection of 10 ints. But even if a selection of random uniformly-distributed seeds were desirable, maintaining some distance would break that distribution.