import random
# generates completely random number
x = random.random()
# generates a random int
x = random.randint()
# generates a random int in a range
x = random.randint(1, 100)
# NOTE: RANGE DOESN'T WORK FOR random.random()
import numpy as np
#Generate 15 numbers between 25 and 60
np.random.randint(25,60, size=(15))
import random
print(random.randint(0,9))
import random
nbr = random.randint(1, 10)
print(nbr)
import numpy as np
uniform_nbrs = np.around(np.random.uniform(size=6), decimals=2)
print(uniform_nbrs)
from random import randrange
print(randrange(10))
import random
print("Generating 3 random integer number between 100 and 999 divisible by 5")
for num in range(3):
print(random.randrange(100, 999, 5), end=', ')
# Generates a random number between i and j
a = random.randrange(i, j)
// Get a random number between 20 and 30
Math.round((Math.random() * (30 - 20 + 1)) + 20);