16 Nov
2011
16 Nov
'11
10:57 a.m.
Hello Folk I would like to generate very small random number in scipy. the command random() generate random number in (0,1). I am doing a simulation that involve very small numbers. for example I am doing somthing like this:
import random a = random.random() if a < 10**-6: do something
But the 'do domething' is never executed, because 10**-6 is very small, and in many cases the random number generate is large, I would like then to generate very small number of order of 10**-6 for example, Any idea on how to do that? Cheers F