Random

import random

a = random.random()
n = random.randint(2, 15) # 2 to 15
n = random.randrange(2, 15)