Lottery

From SkullSecurity
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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