+ 1

Randomness in python

What are some functions that generate random numbers in python

26th Nov 2017, 4:18 AM
mage j lewis
mage j lewis - avatar
2 Answers
+ 12
Huh... u meant something like this? import random for x in range(10): print random.randint(1,112) Well you can always Google.. :/
26th Nov 2017, 4:36 AM
Frost
Frost - avatar
+ 4
I've implemented XORShift128+ In Python (I was working on reversing it and got distracted) but this isn't built in. The code's currently private but it's small, so I can drop a public sample if it's an answer.
26th Nov 2017, 6:32 AM
Kirk Schafer
Kirk Schafer - avatar