/lottosim

get your winning numbers here

Primary LanguageGo

lottosim


Simulates various ways of selecting winning lottery tickets. Default mode is MegaMillions; specify --powerball to switch.

methods

  1. simple-random: returns the first ticket created via rand()
  2. double-pick: draws numbers from pool until the needed amount of numbers have been selected twice; returns this as winner
  3. full-ticket-double: draws tickets (via simple-random) until the same ticket has been drawn twice; returns this as winner
  4. first-ordered: draws tickets (via simple-random) until a ticket was drawn in numerical order; returns this as winner
  5. highest-frequency: draws X balls and creates a ticket from the highest-frequency numbers drawn; returns this as winner