- random
Pseudo Random Number (uniform distribution)
examples/numbers/rand.py
import random a = random.random() print(a) # 0.5648261676148922 a value between 0.0 <= < 1.0 print(random.random()) print(random.random())
- random
- Pseudo random generator
- Uniform distribution between 0-1
- For cryptographically strong random numbers use the secrets module.