mass lottery keno games

Mass lottery keno games

Mass Keno Tracker

This is a single page real time data visualization web app for the Massachusett’s Lottery’s Keno game built in javascript using Backbone and Require. It uses data from the Massachusett’s Lottery’s daily Keno data object which I’m serving as JSONp data from an S3 bucket to prevent undue load to the lottery’s website.

By default the app shows data from all of the day’s Keno games. However, using the text box in the heading area you can adjust it to poll a subset of games. As new games are drawn the updated data is loaded into the browser.

“Hot” and “cold” numbers are calculated based on the number of games being polled and indicated with blue and red borders.

Draw frequency is also inidicated with opacity. The darker the background of a number the more often it has been drawn. If polling a small number of games (

This project is a pretty straightforward Backbone and Require single page web app. Basically a bunch of Backbone views tied together via a single “app” view that manages the eventing. Collections and models all provide a hefty dose of helper functions to make working through the data as clean as possible.

Optimized files are generated via grunt. To build new optimized files for this project simply clone it, run npm install to setup grunt, and issue the grunt command. The default task lints the code and builds with the r.js optimizer.

If you’d like to hack around on this code, it would probably be easier to do so without having to optimize everytime you make a change. Just comment out the optimize block and uncomment the require block in index.html .

Front end chores in no particular order:

  • Fix UI
  • Allow lookup of a specific keno draw by game number
  • Maybe support keno bonus calculations if a good UI can be worked out
  • While this works on mobile, the ratio is all off for most screen sizes.

The Server Side

There is a very simple backend responsible for writing JSONp data to S3 so the app can get realtime game data. The code for this backend exists in the server directory.

The app is configured to read from my S3 bucket by default, so using the app does not require you to set up your own server. If, however, you find yourself interested in giving it a shot, here’s what’s going on.

I have a m1.small server booted in EC2 configured to run the realtimeKenoService via cron every minute.

The server side code has been pulled into its own repository and is currently deployed on Heroku. The scheduling is accomplished with Heroku Scheduler instead of CRON. As a result the data coming from S3 is less than realtime, but Heroku doesn’t support CRON and I’m too cheap to keep an EC2 server running for this.


Realtime visualization of the Massachusett’s Lottery’s Keno game built in JS with Backbone and Require.

Realtime visualization of the Massachusett's Lottery's Keno game built in JS with Backbone and Require. – MattSurabian/mass-keno-tracker

Mass lottery keno games

This website will soon no longer be available.
For all Lottery results and information, please visit our new website at

Winning numbers are drawn approximately every four minutes. Players select from 1 to 12 numbers or “spots” for each game. A computer then randomly chooses 20 winning numbers from 1 to 80 and displays them on a Keno monitor.

KENO-To-Go is a great opportunity for you to play up to 30 consecutive KENO games. All the rules and regulations are the same as the original KENO. You can leave the premises and check your ticket on-line.

KENO BONUS gives you a chance to increase your KENO winnings by 3, 4, 5 or 10 times. The overall odds of having a multiplier number (3, 4, 5 or 10) are 1:2.3

Bets can be placed:
Sun – Sat: 5:00 a.m. – 1:15 a.m.

Hours the game is drawn:
Sun – Sat: 5:04 a.m. – 1:00 a.m.

Check Todays Keno-To-Go numbers

Search results on your phone or tablet
12 Spot Game
Probability of winning a prize in this game = 1:15.73
Match Odds Win
12 1:478,261,833.14 $1,000,000*
11 1:5,978,272.91 $25,000
10 1:184,230.29 $2,500
9 1:10,482.07 $1,000
8 1:980.78 $150
7 1:142.30 $25
6 1:31.05 $5
0 1:43.05 $4
11 Spot Game
Probability of winning a prize in this game = 1:7.63
Match Odds Win
11 1:62,381,978.24 $500,000**
10 1:945,181.49 $15,000
9 1:35,244.06 $1,500
8 1:2,430.62 $250
7 1:277.18 $50
6 1:49.50 $10
5 1:13.50 $1
0 1:30.57 $2
10 Spot Game
Probability of winning a prize in this game = 1:9.05
Match Odds Win
10 1:8,911,711.18 $100,000***
9 1:163,381.37 $10,000
8 1:7,384.47 $500
7 1:620.68 $80
6 1:87.11 $20
5 1:19.44 $2
0 1:21.84 $2
9 Spot Game
Probability of winning a prize in this game = 1:6.53
Match Odds Win
9 1:1,380,687.65 $40,000
8 1:30,681.95 $4,000
7 1:1,690.11 $200
6 1:174.84 $25
5 1:30.67 $5
4 1:8.76 $1
8 Spot Game
Probability of winning a prize in this game = 1:9.77
Match Odds Win
8 1:230,114.61 $15,000
7 1:6,232.27 $1,000
6 1:422.53 $50
5 1:54.64 $10
4 1:12.27 $2
7 Spot Game
Probability of winning a prize in this game = 1:4.23
Match Odds Win
7 1:40,979.31 $5,000
6 1:1,365.98 $100
5 1:115.76 $20
4 1:19.16 $3
3 1:5.71 $1
6 Spot Game
Probability of winning a prize in this game = 1:6.19
Match Odds Win
6 1:7,752.84 $1,600
5 1:323.04 $50
4 1:35.04 $7
3 1:7.70 $1
5 Spot Game
Probability of winning a prize in this game = 1:10.34
Match Odds Win
5 1:1,550.57 $450
4 1:82.70 $20
3 1:11.91 $2
4 Spot Game
Probability of winning a prize in this game = 1:3.86
Match Odds Win
4 1:326.44 $100
3 1:23.12 $4
2 1:4.70 $1
3 Spot Game
Probability of winning a prize in this game = 1:6.55
Match Odds Win
3 1:72.07 $25
2 1:7.21 $2.50
2 Spot Game
Probability of winning a prize in this game = 1:2.27
Match Odds Win
2 1:16.63 $5
1 1:2.63 $1
1 Spot Game
Probability of winning a prize in this game = 1:4.00
Match Odds Win
1 1:4.00 $2.50

How to Play

  1. Choose how many numbers (spots) you want to play by marking in the appropriate box.
  2. Select the amount of money you want to wager per game ($1, $2, $5, $10 or $20) by marking in one of the Amount Bet boxes.
  3. You can play up to 30 consecutive games by marking the appropriate box under Number of Games Played.
  4. Pick the numbers you wish to play from a field of 80 by marking in each of the boxes, keeping in mind the number of spots chosen above. IMPORTANT: KEEP MARKS INSIDE BOXES. Use only PENCIL OR BLUE BALL-POINT PEN to mark the betting slip. You may also let the Lottery computer choose your numbers by marking in the Quic Pic (QP) box.
  5. Mark the “Y” box if you wish to play KENO BONUS. If you play KENO BONUS the total wager amount will double.****
  6. Give the completed betting slip to an ON-LINE Lottery Sales Agent.
  8. The Lottery suggests for your own protection that you sign the back of your ticket to identify ownership.


KENO BONUS gives you a chance to increase your KENO winnings by 3, 4, 5 or 10 times. To play KENO BONUS, mark the “Y” box on your bet slip. The cost of your wager will double. If you purchase the additional BONUS play for a drawing and win, you may multiply your winnings if a multiplier number (3, 4, 5 or 10) is drawn. The overall odds of having a multiplier number (3, 4, 5 or 10) are 1:2.3.

Multiplier Odds Example Winning Amount if KENO BONUS
Not Played Played
No Bonus 1:1.75 $5 $5
3x 1:3 $5 $15
4x 1:15 $5 $20
5x 1:40 $5 $25
10x 1:234 $5 $50

KENO BONUS is not available for the 10-spot, 11-spot, or 12-spot KENO games. A KENO BONUS wager is only valid when played in conjunction with a valid KENO wager.


  1. Bets are not effective until accepted by the Lottery’s on-line computer processing system prior to the drawing of the winning number and in accordance with Lottery rules. Bettors acknowledge that on-line Lottery sales agents are acting on behalf of the bettors in entering bets into the Lottery’s on-line KENO computer processing system.
  2. Present your completed bet slip to your Lottery Sales agent for processing. You will receive a ticket. CHECK YOUR TICKET IMMEDIATELY TO VERIFY THAT THE SELECTIONS ON YOUR TICKET MATCH THE SELECTIONS REQUESTED ON THE BET SLIP.
  3. Present winning ticket to any on-line KENO sales agent for payment of prizes up to and including $600. Claims for more than $600 will be paid by the Lottery Commission after claim form is filed. Under unusual conditions, fixed prizes may be reduced according to the rules and regulations. All cash prizes must be claimed within one (1) year following the draw date.
  4. Your ticket is a bearer instrument. Unless signed by owner, prize may be claimed by anyone in possession of winning ticket. SIGN YOUR TICKET IMMEDIATELY. Bettors agree to abide by Lottery Commission rules and regulations. Applicable rules are available for inspection by bettors by contacting the Lottery Commission at. 150 Mount Vernon St. Dorchester MA 02125

KENO drawings take place seven days a week, Sunday through Saturday, 5:04 a.m. to 1:00 a.m.

The drawings take place approximately 4 minutes apart.

The Lottery will select twenty (20) numbers out of a field of eighty (80) numbers ranging from number one (1) to number eighty (80).

A computer driven random number generator will select the winning numbers for each drawing. The random number generator will only select winning numbers after receiving confirmation from the Lottery’s computer system that betting for that drawing has been closed.

More specifically: There are two computer systems involved in a Keno drawing. The primary computer takes all bets. Attached to this main computer is a random number generator that is constantly shuffling 80 numbers around. Once the betting is closed, the primary computer asks the random number generator for 20 numbers. At that moment, the primary computer knows the 20 winning numbers and graphically displays them on the Keno monitors at agent locations. The random number generator is independent of the primary computer and has no way of determining which bets the primary computer accepts. The sole purpose of this generator is to continuously shuffle numbers and provide the primary computer with a set of winning numbers when asked.

Contact the Lottery

150 Mount Vernon Street
Dorchester, MA 02125-3573
(781) 849-5555

Find out more about:
  • Lottery games
  • Instant games
  • VIP Club
  • Becoming an agent
  • Claiming a prize
  • Drawing procedures
  • FAQs
  • Procurement
Where can I:
  • Find Past Winning Numbers
  • Play Lottery games
  • Play Bingo
  • Find Lottery office locations
  • Get help with compulsive gambling
  • Find other state agencies
  • Buy Season Tickets

Disclaimer: Information found on this website is believed to be accurate. If you have questions about the winning numbers, contact the Lottery at (781) 848-7755 or visit your nearest Lottery agent or Lottery office for the official winning numbers.

The Lottery would like to remind players that it is unlawful for anyone under the age of 18 to play. © Massachusetts State Lottery Commission, All Rights Reserved
A Commission under the Office of the Treasurer and Receiver General of the Commonwealth

Search winning Keno numbers and find out where to play! ]]>