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
2print(random.randint(10,100))
3
4 this will output somthing between 10 and 100
1import numpy as np
2#Generate 15 numbers between 25 and 60
3np.random.randint(25,60, size=(15))