Floris van Manen added the comment: It is in the combination with jumpahead(), getstate(), setstate() that you'll experience random() to produce values >= 1.0
.F On 25 Jan 2013, at 06:24, Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > Can you show how you determined that you got a value >= 1.0 or provide a seed > that reproduces the problem? > > I'm not seeing an issue on the 2.7.3 64-bit Mac build: > >>>> from itertools import starmap, repeat >>>> from random import random, seed >>>> seed(56019413053459019451450201) >>>> for i in range(20): > print max(starmap(random, repeat((), 10000000))) > > > 0.999999787916 > 0.999999859769 > 0.999999809486 > 0.99999968575 > 0.999999886565 > 0.999999991274 > 0.999999886922 > 0.999999874948 > 0.999999987989 > 0.999999751067 > 0.999999999353 > 0.999999935037 > 0.999999919091 > 0.999999664265 > 0.999999951016 > 0.999999998665 > 0.999999919618 > 0.999999786864 > 0.999999874042 > 0.999999967453 > > ---------- > nosy: +rhettinger > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue17020> > _______________________________________ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17020> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com