Monte Carlo Simulation written in Ruby