Weibull distr. random number generation

Dimos dimos_anastasiou at yahoo.com
Fri Nov 19 10:21:32 EST 2010


Dear Python list subscribers,

Sorry of this has been covered already...This is a newbie question about actual scripting/syntax.

I would like to use the random module, and if I understand well the Random class, to create  1300 decimal numbers in python, by providing the 2 Weibull parameters (b,c). How this can be done???

import random
print random
random.weibullvariate(b,c)
How can I set the population size n=1300 in decimals?

Best, Dimos





      



More information about the Python-list mailing list