1# generate random integer values
2from random import randint
3
4value = randint(0, 10)
5print(value)
6
1import random
2
3# generates completely random number
4x = random.random()
5
6# generates a random int
7x = random.randint()
8
9# generates a random int in a range
10x = random.randint(1, 100)
11
12# NOTE: RANGE DOESN'T WORK FOR random.random()
1import random
2nbr = random.randint(1, 10)
3print(nbr)
4
5import numpy as np
6uniform_nbrs = np.around(np.random.uniform(size=6), decimals=2)
7print(uniform_nbrs)