Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
See which numbers are chosen most often
Ruby
Tree: 634abc0cd5

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.rvmrc
README.markdown
powerball.rb

README.markdown

Powerball Numbers

Simple analysis of Powerball lottery number stats, using Ruby's Enumerable.

Pulls from "today" back to the beginning of the Powerball epoch (1 Nov 1997) and tabulates the most popular numbers.

Requires the hpricot gem. Running in 1.9.3

 ➤ ruby ./powerball.rb 
Getting Powerball drawing data from 02/20/2012 back to 11/01/1997 ...
Got 1738801 bytes of Powerball data. Stand by for parsing.
Examining results of 1493 drawings...
Top 5 numbers: 41, 20, 32, 16, 26
Top Powerball: 37
 ➤ 
Something went wrong with that request. Please try again.