random.randfloat code example
Example 1: python randint
from random import randint
print(randint(3, 9))
Example 2: python random float
# The random function random() returns a random float between
# zero and one
import random
random.random()
Example 3: random range python
from random import randrange
print(randrange(10))
Example 4: python randint
from random import randint
print(randint(1,2))