Daily Archives Saturday, December 2005

My First Useless Ruby Script
Dice Rolls
I’m not sure how Ruby gets its random number but run this with a million or a billion rolls and it still gets pretty evenly distributed values (on FreeBSD anyway).

# roll.rb
class Die
def initialize ()
[...]