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.
Yet another way to make a random decimal.
import random
round(random.randint(1, 1000) * random.random(), 2)
On this example,