Simulates various ways of selecting winning lottery tickets. Default mode is MegaMillions; specify --powerball
to switch.
simple-random
: returns the first ticket created via rand()double-pick
: draws numbers from pool until the needed amount of numbers have been selected twice; returns this as winnerfull-ticket-double
: draws tickets (via simple-random) until the same ticket has been drawn twice; returns this as winnerfirst-ordered
: draws tickets (via simple-random) until a ticket was drawn in numerical order; returns this as winnerhighest-frequency
: draws X balls and creates a ticket from the highest-frequency numbers drawn; returns this as winner