#12580: set_random_seed does not seed Python's random number generator
------------------------+---------------------------------------------------
   Reporter:  mariah    |          Owner:  jason   
       Type:  defect    |         Status:  new     
   Priority:  critical  |      Milestone:  sage-5.0
  Component:  misc      |       Keywords:          
Work_issues:            |       Upstream:  N/A     
   Reviewer:            |         Author:          
     Merged:            |   Dependencies:          
------------------------+---------------------------------------------------
 William Stein reported on sage.devel:[http://groups.google.com/group/sage-
 devel/browse_thread/thread/5fa8e919dd83b4b7]:

 {{{
 sage: import random
 sage: set_random_seed(0); random.randint(0,20)
 3
 sage: set_random_seed(0); random.randint(0,20)
 8
 }}}

 William said "Basically, I expected that Sage's "set_random_seed" would
 actually set
 *Python*'s own random seed, given that it sets gp, gap, maxima, etc."

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12580>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to