From: Axel Etzold Date: 2008-08-17T16:16:39+09:00 Subject: Re: Generating Normally Distributed Random Numbers? Dear Michael, > > 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. have a look at the statistics2 package in the RAA (Ruby Application Archive). It does many statistical calculations, such as random number generation, in Ruby. The distributions involved in statistical tests are there, also. > 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. > Should you come to a point where statistics2 doesn't do what you need, a further option is to install the R statistical language and its Ruby bindings rsruby. Best regards, Axel -- GMX Kostenlose Spiele: Einfach online spielen und Spa� haben mit Pastry Passion! http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196