Random Numbers

import random
random.seed('some seed - string or number', 2)
random.random() # floating point number in range [0.0, 1.0)
random.randint(a, b) # returns number N such that a <= N <= b
random.randrange(0, 101, 2) # even integer from 0 too 100 inclusive
random.randrange(10) # integer from 0 to 10
random.choice(['win', 'lose', 'draw']) # single random element from a sequence
a = ['a', 'b', 'c', 'd']
random.shuffle(a) # shuffle the array
sample([10, 20, 30, 40, 50], k=4) # Four samples without replacement
[40, 10, 50, 30]

Source: Python 3.6 documentation

Python's random and statistics modules are powerful, offerring a wide range of functions. See Python documentation for full details.