.uniform() method takes two numbers as arguments and returns a pseudo-random floating-point number between them. The result is inclusive of the first value, and possibly inclusive of the second value, depending on rounding.
value2 are numbers bounding the choice of a random floating-point number.
In the example below,
.uniform() is used to return a random floating-point number between 10 and 20:
The following example prints random floating-point numbers between 10 and 15, 100 and 150, -10 and 10, and 0.75 and 0.90.