Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2011-01-12 01:40:26 -0500

v_2e gravatar image

Easy way to get repeatable random number sequences.

Hello!
Tell me please, if there is a simple and easy way to get the same random number sequence multiple times in Sage?
For example, in Python one can use the random.seed() function to set the random seed and then get a random nuber sequence with random.random() function. After that it is easy and obvious to set the random.seed() to the same seed as the first time and get the very same random sequence again.
But how to get such sequences in Sage?

Thanks.