Random Uniform Method in Python



The uniform() function is defined in the random module of the standard Python library. It returns a random floating-point number between a given range of numbers

>>> import random
>>> random.uniform(10,100)
20.118467024396452
>>> random.uniform(10,100)
23.739576765885502


Jayashree
Jayashree

Updated on: 2020-06-24T07:00:09+05:30

170 Views

Kickstart Your Career

Get certified by completing the course

Get Started