[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    [SOLUTION][QUIZ] Probable Iterations (#141)
From:       Jesse Merriman <jesse.d.merriman () gmail ! com>
Date:       2007-09-30 13:47:36
Message-ID: 200709300946.06521.jesse.d.merriman () gmail ! com
[Download RAW message or body]

[Attachment #2 (Multipart/Mixed)]

My solution isn't very fast, but gets the job done. To generate all possible
rolls, it runs through 0...6**num_dice, gets the string in base-6, and splits
it up.


-- 
Jesse Merriman
jessemerriman@warpmail.net
http://www.jessemerriman.com/

["dice.rb" (application/x-ruby)]


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic