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
I'm using a shell script to handle some excel docs by converting to csv and reformatting it a little bit. I'm having some difficulty going on with the next part of the script. Some help would be great. :)
[more inside]
posted by fightoplankton
on Jun 10, 2009 -
11 answers
I have a podcast that downloads as multiple segments over multiple days. Its format arrives as YYYYMMDD_showcode_segment.mp3; so, for example, one download might result in files as 20090323_goofa_01.mp3 through 20090323_goofa_21.mp3, and also
within the same download 20090324_goofa_01.mp3 through 20090324_goofa_21.mp3. What I'm looking for is a Unix script (shell, perl, what have you) that would look at a directory and look at what dates are represented there, and let me join all of the segments together by day. I can use mpgtx -j to do the actual joining; I'm looking for the code that would let the script determine what dates are in the directory and then get each day's segments united into a single MP3 for that day's show.
posted by WCityMike
on Mar 25, 2009 -
5 answers
I would basically like to rip off, wholesale, some command-line script which will provide me a countdown -- only in days. No years, months, minutes, or seconds. Unfortunately, adapting an existing script is beyond my ken.
[more inside]
posted by WCityMike
on Sep 27, 2007 -
5 answers
Looking for a reasonably quick introduction to Perl Unix scripting, preferably online.
posted by Krrrlson
on Nov 4, 2004 -
7 answers