%!demo
%! ## Generate random samples from a Normal distribution
%! rand ("seed", 21);
%! samples = randn (500, 1);
%! hist (samples, 50)
%! title ("Histogram of 500 random samples from Normal(mu=0, sigma=1)")
%! xlabel ("values in x")
%! ylabel ("Frequency")
%!
%! ## This generates random samples from a Normal distribution, useful
%! ## for simulating symmetric data like noise or natural variations.
