Problem this random seed()

NZach nickzacharatos at gmail.com
Tue Mar 19 11:26:42 EDT 2013


Τη Τρίτη, 19 Μαρτίου 2013 5:23:47 μ.μ. UTC+2, ο χρήστης NZach έγραψε:
> Τη Τρίτη, 19 Μαρτίου 2013 3:57:30 π.μ. UTC+2, ο χρήστης NZach έγραψε:
> 
> > Hello everyone,
> 
> > 
> 
> > 
> 
> > 
> 
> > i am using the MMK.py example from a SimPy tutorial, which can be found here: http://heather.cs.ucdavis.edu/~matloff/156/PLN/DESimIntro.pdf
> 
> > 
> 
> > 
> 
> > 
> 
> > I have made very little changes to the code and i have upload it here:
> 
> > 
> 
> > http://codeviewer.org/view/code:30d3
> 
> > 
> 
> > 
> 
> > 
> 
> > The problem is that i am executing  the main() function in lines 83 and 90, but 
> 
> > 
> 
> > i do not receive the  same result, although the random seed is used in the G 
> 
> > 
> 
> > class.
> 
> > 
> 
> > 
> 
> > 
> 
> > Any idea please, how can i solve it ?
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > Thanks,
> 
> > 
> 
> > 
> 
> > 
> 
> > Nicholas.
> 
> 
> 
> Yes, sorry, I meant @sven not @Stev. 
> 
>  
> 
> The problem with the random number is solved.

Thank you very much for the replies. 

I will check what the now() prints and probably if i wont find any solution i will create new topic.



More information about the Python-list mailing list