%!demo
%! ## Generate random samples from a Lognormal distribution
%! rand ("seed", 21);
%! samples = lognrnd (0, 1, 500, 1);
%! hist (samples, 50)
%! title ("Histogram of 500 random samples from Lognormal(mu=0, sigma=1)")
%! xlabel ("values in x (x > 0)")
%! ylabel ("Frequency")
%!
%! ## This generates random samples from a Lognormal distribution, useful
%! ## for simulating skewed positive data like asset prices or biological measurements.
