On 21 October 2012 11:30, LFS <lfahlb...@gmail.com> wrote: > Hiya Dmitrii > Thanks so much for your quick reply, but I am still getting the same > problem.
I don't know if this the best way in Sage, but it is common practice to seed the random number generator from the number of seconds since the Epoch (1/1/1970). So every time you seed it, you get a different sequence. Another option is to seed it with some bytes from /dev/random or /dev/urandom. In fact, /dev/urandom gives about as good as you can get for random numbers, as they are consider cryptographically secure. However, if there is insufficent entropy in the system, /dev/urandom will block, and give no data. One advantage of using a pseudo random number generator is that it is possible to repeat an experiment, using the same seed, and you will get the same numbers. That's not possible if you use /dev/random or /dev/urandom. Dave -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.