摘要 |
PROBLEM TO BE SOLVED: To reduce a memory capacity of a game machine which performs a lottery by using a random number.SOLUTION: A game machine includes a lottery table in which a plurality of register values are defined which indicate a winning region from random number values which can be generated by random number generation means and an initial value of a loop variable is defined which is updated every execution of a certain loop processing. A register value of nth defined in the lottery table is subtracted from an obtained random number value to update the random number value. When the random number value after the update is equal to or more than a prescribed value N1, it is repeated until the random number value after the update is less than the prescribed value N1 that a register value of (n+1)th defined in the lottery table is subtracted from the random number value after the update to update the random number value. Every time the random number value is updated, a predetermined value is subtracted from the loop variable to update the loop variable. The loop variable at a time when the random number value turns less than the prescribed value N1, is determined as a winning number.SELECTED DRAWING: Figure 30 |