Three-axis gyroscope-based mobile phone lottery number random selection method
A gyroscope and lottery ticket technology, applied in the field of mobile phone lottery random number selection based on a three-axis gyroscope
Image
Examples
Embodiment 1
[0016] Example 1 as figure 2 Shown: Use the milliseconds of the duration as the random number seed. At this time, the lottery rules do not allow repeated bets, as follows:
[0017] 1) Random number seed generation based on three-axis gyroscope
[0018] Let the start time of shaking time be , the end time is , then the seed number is the number of milliseconds between them:
[0019] (1)
[0020] 2) Generation of random bets
[0021] Let the random number be , Represent the random numbers generated from the 1st to the Nth time respectively;
[0022] Let the resulting bet be , Respectively represent the bets generated from the 1st to N times; is a random number generation algorithm, and the modulus for obtaining bets is ;
[0023] (2)
[0024] (3)
[0025] (4).
[0026] The first bet is obtained by taking the remainder of the random number and recorded; then the first random number is used as a seed, and the rand...
Embodiment 2
[0027] Example 2 as image 3 Shown: The milliseconds of the duration are used as the random number seed. At this time, the lottery rules allow bets to be repeated, as follows:
[0028] 1) Random number seed generation based on three-axis gyroscope
[0029] Let the start time of shaking time be , the end time is , then the seed number is the number of milliseconds between them:
[0030] (1)
[0031] 2) Generation of random bets
[0032] Let the random number be , Represent the random numbers generated from the 1st to the Nth time respectively;
[0033] Let the resulting bet be , Respectively represent the bets generated from the 1st to N times; is a random number generation algorithm, and the modulus for obtaining bets is ;
[0034] (2)
[0035] (3)
[0036] (4).
[0037] The first bet is obtained by taking the remainder of the random number; then the first random number is used as a seed, and the random number ...
PUM
Login to View More Abstract
Description
Claims
Application Information
- IPC
- G07C15/00; H04M1/725
- Inventors
- 耿喆; 刘洪马
