Problem this random seed()

Sven svenito at
Tue Mar 19 12:59:20 CET 2013

On 19 March 2013 10:54, NZach <nickzacharatos at> wrote:

> @eli m : The problem is that i execute on lines 83 and 90 the main() and
> although the seed value is the same, equal to 12345, i receive different
> results from lines 85 and 92.
> @alex23: I changed the code,, but i
> still receive have the same problem. The results are different.
> Any idea please

have you actually tried printing out the return value of



I'm not sure as I have not used SimPy before, but the values you are
printing out at the bottom seem to be related to the timing, specifically
now(), which would give you a different result each time.

If you print out or inspect the result of expovariate, it should be the
same each time you run main.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list