Yukihiro Matsumoto
9/15/2007 12:10:00 PM
Hi,
In message "Re: rand() v. rand(0.1) ?"
on Sat, 15 Sep 2007 20:35:37 +0900, Chad Perrin <perrin@apotheon.com> writes:
|Speaking of which . . . obviously rand() doesn't produce a truly random
|number, but it's reasonably close for some purposes. I'm curious about
|just how far off it is, though -- because I'm curious about how
|appropriate it is to use to simulate dice-rolling for gaming software (in
|the "roleplaying game" sense of the term "gaming") in Ruby's
|implementation.
It uses Mersenne Twister algorithm which has a period of 2**19937-1.
matz.