get random float random python code example
Example 1: random between two floats python
>>> random.uniform(1.5, 1.9)
1.8733202628557872
Example 2: python random number
from random import randint
print(randint(1,3))
#Possible Outputs#
#1
#2
#3
>>> random.uniform(1.5, 1.9)
1.8733202628557872
from random import randint
print(randint(1,3))
#Possible Outputs#
#1
#2
#3