Project

melatico

0.0
No commit activity in last 3 years
No release in over 3 years
Simple ruby library to generate Melate (Mexico's Lotto) combinations.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
>= 0
~> 2.14.1
 Project Readme

Melatico

Simple ruby library to generate Melate (Mexico's Lotto) combinations.

Installation

Add this line to your application's Gemfile:

gem 'melatico'

And then execute:

$ bundle

Or install it yourself as:

$ gem install melatico

Usage

Melatico.draw
#=> [17, 31, 39, 44, 47, 48]

# Want to generate a full sheet?
Melatico.draw(5)
# [
#   [16, 19, 46, 49, 51, 53],
#   [1, 7, 34, 42, 43, 50],
#   [2, 16, 26, 27, 35, 48],
#   [18, 28, 35, 45, 52, 53],
#   [20, 23, 27, 33, 35, 50]
# ]

# Or generate any number of combinations
Melatico.draw(3)
# [
#   [4, 5, 8, 12, 41, 48],
#   [17, 32, 35, 38, 51, 54],
#   [2, 36, 40, 41, 45, 52]
# ]

Contributing

  1. Fork it ( https://github.com/[my-github-username]/melatico/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request