How do I get a random decimal.Decimal instance? It appears that the random module only returns floats which are a pita to convert to Decimals.
import random y = eval(input("Enter the value of y for the range of random number : ")) x = round(y*random.random(),2) #only for 2 round off print(x)