Message272519
Anyhow, in this case it is easy to simulate the Python 2 randint behaviour (add checks for hi >= lo if needed):
>>> random.seed(5, version=1)
>>> randint_compat = lambda lo, hi: lo + int(random.random() * (hi + 1 - lo))
>>> randint_compat(0, 9999999)
6229016 |
|
Date |
User |
Action |
Args |
2016-08-12 10:47:22 | ztane | set | recipients:
+ ztane, rhettinger, mark.dickinson, SilentGhost, wrohdewald |
2016-08-12 10:47:22 | ztane | set | messageid: <1470998842.24.0.520103153092.issue27742@psf.upfronthosting.co.za> |
2016-08-12 10:47:22 | ztane | link | issue27742 messages |
2016-08-12 10:47:22 | ztane | create | |
|