0
$\begingroup$

I am using [numpy.random.lognormal][1] to generate distribution based on mean and std. of underlying normal distribution.

np.random.lognormal(mu, sigma, size=50)

My question is: can I truncate the distribution / sample to only include certain values? on the lower and upper end of the distribution. Is there a way to specify the min and max of the distribution?

$\endgroup$
0