MegaLotto is a Ruby gem to help easily generate lottery drawings.
Add this line to your application's Gemfile:
gem 'mega_lotto'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mega_lotto
require "mega_lotto"
MegaLotto::Drawing.draw # => [23, 22, 3, 7, 16]
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request