SACRAMENTO (CBS / AP) — It’s an unlucky day for the California Lottery.

A computer glitch on Monday shut down lottery terminals around the state, preventing gamblers from getting numbers for Powerball and other games. Only the scratch-off tickets were still being sold.

READ MORE: 49ers Fans Look to Make Noise, Boost Team at NFC Championship Game

Lottery spokesman Alex Traverso says there was a loss of signal that prevented the terminals from connecting to the system that generates the numbers.

READ MORE: Solo Crash Friday Night Closes Moraga Road, Cuts Power to Hundreds

Traverso says about 350 out of 22,000 stores were affected, some for as long as five hours, but the problem was resolved by late Monday afternoon.

The cause of the problem is being investigated. Traverso says the contractor that provided the terminals may have to pay the lottery for the lost sales.

MORE NEWS: S.F. Supervisors Set to Designate Casa Sanchez Bldg. in Mission District a Historical Landmark

© Copyright 2015 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.