This is now trac #12580. Mariah
On Feb 22, 4:46 pm, William Stein <wst...@gmail.com> wrote: > Hi Sage-Devel, > > I was very surprised by this just now: > > sage: import random > sage: random.randint(0,20) > 0 > sage: set_random_seed(0) > sage: random.randint(0,20) > 0 > sage: set_random_seed(0) > sage: random.randint(0,20) > 5 > sage: random.seed(0) > sage: random.randint(0,20) > 17 > sage: random.seed(0) > sage: random.randint(0,20) > 17 > > 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. > > I would think this is an obvious serious bug... but since it seems so > blatant, maybe I'm missing something. > > William > > -- > William Stein > Professor of Mathematics > University of Washingtonhttp://wstein.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org