in reply to Rand() with ?log10? distribution?

You would need a nextInt function as in Java or Python, docs are here http://docs.python.org/2/library/random.html You can call python or write one with a $randomnumber * $x or $randomnumber + $x.