Python Language Tutorial => Random module
Syntax
- random.seed(a=None, version=2) (version is only avaiable for python 3.x)
- random.getstate()
- random.setstate(state)
- random.randint(a, b)
- random.randrange(stop)
- random.randrange(start, stop, step=1)
- random.choice(seq)
- random.shuffle(x, random=random.random)
- random.sample(population, k)
- Create cryptographically secure random numbers
- Creating a random user password
- Creating random integers and floats: randint, randrange, random, and uniform
- Random and sequences: shuffle, choice and sample
- Random Binary Decision
- Reproducible random numbers: Seed and State