Forum: Ruby Random gauss numbers?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
uval (Guest)
on 2005-11-30 05:29
(Received via mailing list)
Hello all,

how can I generate random Gaussian distributed numbers?
something like Gauss(mean, sigma)

thx in advance

dandiebolt (Guest)
on 2005-11-30 05:37
(Received via mailing list)
dandiebolt (Guest)
on 2005-11-30 06:49
(Received via mailing list)
The link below contains an ruby implementation of the Box-Muller method
for normal distribution:
This topic is locked and can not be replied to.