[sage-support] Re: Sage doctest randomness

2008-10-13 Thread Ryan Hinton
Is set_random_seed supposed to control the Python random number generator? Are there two "standard" random number generators in Sage? I am using the "shuffle" command to (pseudo-randomly) rearrange the elements of a list. From the Sage command line it works fine. sage: set_random_seed(9) sage:

[sage-support] Re: Sage doctest randomness

2008-10-10 Thread jason-sage
Ryan Hinton wrote: > Jason, > > I saw a suggestion recently on the sage list to set the random seed at > the beginning of each doctest so previously "random" outputs could be > tested. I'm writing some 'pick a random member from this (very large) > set' routines, so I could use this functional

[sage-support] Re: Sage doctest randomness

2008-10-10 Thread Carl Witty
On Oct 10, 5:45 pm, [EMAIL PROTECTED] wrote: > Ryan Hinton wrote: > > Jason, > > > I saw a suggestion recently on the sage list to set the random seed at > > the beginning of each doctest so previously "random" outputs could be > > tested.  I'm writing some 'pick a random member from this (very la