Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 2011-01-12 01:46:11 -0600

DSM gravatar image
sage: set_random_seed(10)
sage: initial_seed()
10L
sage: random()
0.96172216248923448
sage: random()
0.4035526020095398
sage: set_random_seed(10)
sage: initial_seed()
10L
sage: random()
0.96172216248923448
sage: random()
0.4035526020095398

And please read the very useful tutorial in help(sage.misc.randstate) for everything you could ever want to know!

sage: set_random_seed(10)
sage: initial_seed()
10L
sage: random()
0.96172216248923448
sage: random()
0.4035526020095398
sage: set_random_seed(10)
sage: initial_seed()
10L
sage: random()
0.96172216248923448
sage: random()
0.4035526020095398

And please read the very useful tutorial in help(sage.misc.randstate) help(sage.misc.randstate) for everything you could ever want to know!know!