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.
The random module has more to offer than "only returning floats", but anyway:
from random import random from decimal import Decimal randdecimal = lambda: Decimal("%f" % random.random())
Or did I miss something obvious in your question ?