Forum: Ruby Random gauss numbers?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8d6f5daee16e380ce0ac00395b417fb6?d=identicon&s=25 uval (Guest)
on 2005-11-30 04:29
(Received via mailing list)
Hello all,

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

thx in advance

Daniel
Ad97b577f331ae29ed90da5751f2e44f?d=identicon&s=25 dandiebolt (Guest)
on 2005-11-30 04:37
(Received via mailing list)
Ad97b577f331ae29ed90da5751f2e44f?d=identicon&s=25 dandiebolt (Guest)
on 2005-11-30 05:49
(Received via mailing list)
The link below contains an ruby implementation of the Box-Muller method
for normal distribution:

http://users.rcn.com/m3ha11/ruby/Rand.rb
This topic is locked and can not be replied to.