I'd like to be able to regenerate  samples by feeding a seed value to 
random.seed()  ,  but it seems sample() doesn't use this random seed.  Is 
there a way to do what I want ?  Thanks,  

sage: random.seed(1)
sage: random.random()
0.13436424411240122
sage: sample(range(5),2)
[4, 1]
sage: random.seed(1)
sage: random.random()
0.13436424411240122
sage: sample(range(5),2)
[0, 4]

-- 
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-support
URL: http://www.sagemath.org

Reply via email to