Is there a random number distribution that obeys Benford's Law?
Benford's law describes the distribution of the first digits of a set of numbers if the numbers are chosen from a wide range on the logarithmic scale. If you prepare a log-uniform distribution over one decade, it will respect the law as well. 10^[0,1)
will produce that distribution.
This will produce the desired distribution: math.floor(10**random.random())