Random number between 0 and 1 in python

I want a random number between 0 and 1, like 0.3452. I used random.randrange(0, 1) but it is always 0 for me. What should I do?

You can use random.uniform

    import random
    random.uniform(0, 1)

From: stackoverflow.com/q/33359740

Back to homepage or read more recommendations: