Lotto
in package
Collection of functions to help with Lotto processing.
Table of Contents
Constants
- TICKET_COST : int = 1000000
- WIN_FRAC : float = 0.9
Methods
- checkForLottoWinner() : void
- getLottoInfo() : array{Prize: int, TimeRemaining: int}
Constants
TICKET_COST
public
int
TICKET_COST
= 1000000
WIN_FRAC
public
float
WIN_FRAC
= 0.9
Methods
checkForLottoWinner()
public
static checkForLottoWinner(int $gameID) : void
Parameters
- $gameID : int
getLottoInfo()
public
static getLottoInfo(int $gameID) : array{Prize: int, TimeRemaining: int}
Parameters
- $gameID : int