Michael Craig
8/17/2008 4:39:00 AM
[Note: parts of this message were removed to make it a legal post.]
Thanks, all. I tried some generic Googling and found an implementation of
whats called the Box-Muller transformation. I've pretty much got it figured
out now, and I'd gladly post what I come up with when I'm done. Thanks to
Eric for what you posted, very helpful.
The "trivial application" I have in mind is for writing some simple code to
cut a deck of cards realistically. I'm working on some groundwork that will
allow for ruby-based cards simulation. I've already written a working
program for simulating a simple solitaire game called mod10, with the end
goal of calculating how often a computer, making "perfect" decisions, wins
the game.
Mike
On Sat, Aug 16, 2008 at 10:24 PM, Michael Craig <ungluedattheseams@gmail.com
> wrote:
> Does anybody know of a good method in Ruby to generate normally distributed
> random numbers? The application I have in mind at the moment is trivial,
> but
> I can think of a number of statistics-oriented applications.
>
> Thanks, all,
> Mike
>