4 posts tagged with ruby and unix.
Displaying 1 through 4 of 4. Subscribe:

How to solve a complex statistics problem with a script?

In this game, you roll a number of six-sided dice to get a total. The total is either the highest single die result, or the sum of any multiples rolled, whichever is higher. For example: If I roll three dice and get a 3, 4, and 6, my total is 6. But if I roll a 4, 4, and 6, my total is 8, the sum of the two 4s. What I want to find out is the mean, median, mode, and standard deviation of the possible totals given N dice. How might I create a simple script to compute this? [more inside]
posted by j0hnpaul on Nov 30, 2012 - 24 answers

Configure Readline with wrong directory. Oops.

Configured Readline with the prefix 'ur/local' on OSX. Then installed Ruby in /usr/local, but with Readline. Would like to put everything in the proper place without damaging anything, so what do I do now? [more inside]
posted by djgh on Jul 23, 2007 - 5 answers

"There's no place like home...."

Need a tinker-free Linux/MySql install for Ruby On Rails. Also, seeking advice for getting started in RoR. [more inside]
posted by Afroblanco on Jun 27, 2006 - 19 answers

The switch must go on

How do I get rid of my hastily installed Ruby 1.8.2. from my Mac, while leaving behind the version that came preinstalled? [more inside]
posted by patgas on Sep 25, 2005 - 7 answers

Page: 1