Lottery

From SkullSecurity
Revision as of 19:16, 27 July 2008 by Ron (talk | contribs) (New page: ==Lottery== * Name: Lottery * OS: Java * Language: Java * Path: http://svn.skullsecurity.org:81/ron/old/Lottery * Created: Old * State: Complete I wrote this little lottery program to dem...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Lottery

I wrote this little lottery program to demonstrate using an array to keep track of numbers that have been chosen, thus turning an O(exponential) problem into O(1).

Other than that simple demo, there's nothing to it. Pick some numbers on the commandline, run the program, and it'll tell you how many of the guesses were correct.

svn co http://svn.skullsecurity.org:81/ron/old/Lottery