python uniformly sample from a range code example
Example 1: python random number
from random import randint
print(randint(1,3))
#Possible Outputs#
#1
#2
#3
Example 2: np.random.uniform
numpy.random.uniform(low=0.0, high=1.0, size=None)
from random import randint
print(randint(1,3))
#Possible Outputs#
#1
#2
#3
numpy.random.uniform(low=0.0, high=1.0, size=None)