'Generate random numbers between a range with only two decimal points in python

I wish to Generate random numbers between a range with only two decimal points in python.

For example I need to generate Range(100,200)

And output should be 102.33 or 130.42

Just any random number with only 2 decimal point.



Solution 1:[1]

from random import randint

def randbetween(x, y):
    return randint(x*100, y*100)/100

randbetween(100,200) #127.12

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 thariqfahry