Random number between 0 and 1 in python [duplicate]

You can use random.uniform

import random
random.uniform(0, 1)

Leave a Comment