You are on page 1of 1

#Random function

import random

a=random.random() # returns random number 0.0-1.0- float value

print(a)

b=random.randint(1,4) # returns a random integer between the range both included

print(b)

c=random.randrange(1,10,2) # returns a random number between the range with a step

print(c)

You might also like