[SciPy-dev] New random capability [was: Release of scipy core...]

Charles R Harris charles.harris at sdl.usu.edu
Wed Sep 28 14:01:49 CDT 2005

On Wed, 2005-09-28 at 14:30 -0400, Tom Loredo wrote:
> Robert,
> Wow, thanks for what sounds like some well thought out improvements
> in the "random" capability of scipy.  Working on this has been on
> my todo list, but at lower priority than other things.  I think 
> it's in more capable hands in any case!
> > I also think some provision for setting a simple seed, perhaps just a long,
> > is useful for testing when it is nice to have a repeatable sequences.
> Actually, I think some users need more than this (I certainly speak
> at least for myself!).  I think there should be capability to store
> the full current state, and restore it.

In the Mersenne Twister this also requires storing an index into the
current state. The MWC type generators need to store the value of the
carry as well. Perhaps all that is needed is a way to serialize the
generator or make a copy.


More information about the Scipy-dev mailing list