Re: generate random numbers in a deterministic way

2012-04-24 Thread Temia Eszteri
Assuming you're using the Python's random module, which works based on the Mersenne Twister, you can preset the seed with random.seed(hashable). More details here: http://docs.python.org/library/random.html#random.seed ~Temia On Wed, 25 Apr 2012 07:51:18 +0200, you wrote: >Hi, > >I'm working wi

generate random numbers in a deterministic way

2012-04-24 Thread Jabba Laci
Hi, I'm working with some sorting algorithms and I want to compare their efficiency. One test fills a list with one million random integers, which serves as input for the algorithms. However, if this list is different each time I run the tests, the tests wouldn't be fair. At the moment the selecte