First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 11 years ago

calc314 gravatar image

You might also prefer to use numpy.random. You can get help at:

http://docs.scipy.org/doc/numpy/reference/generated/numpy.random.lognormal.html#numpy.random.lognormal

click to hide/show revision 2
added examples

You might also prefer to use numpy.random. You can get help at:

http://docs.scipy.org/doc/numpy/reference/generated/numpy.random.lognormal.html#numpy.random.lognormal

For example, try:

import numpy.random as rdm
rdm.normal(4,1,10)
rdm.lognormal(4,2,20)