Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

seed? may enlighten you :

Docstring:     
WARNING: the enclosing module is marked 'needs sage.groups sage.libs.gap sage.libs.ntl sage.libs.pari',
so doctests may not pass.

   The "randstate" class.  This class keeps track of random number
   states and seeds.  Type "sage.misc.randstate?" for much more
   information on random numbers in Sage.
Init docstring:
WARNING: the enclosing module is marked 'needs sage.groups sage.libs.gap sage.libs.ntl sage.libs.pari',
so doctests may not pass.

   Initialize a new "randstate" object with the given seed (which must
   be coercible to a Python long).

   If no seed is given, then a seed is automatically selected using
   "os.urandom()" if it is available, or the current time otherwise.

   EXAMPLES:

      sage: from sage.misc.randstate import randstate
      sage: r = randstate(54321); r

[ Snip... ]

HTH,