CN102629397A - Three-axis gyroscope-based mobile phone lottery number random selection method - Google Patents
Three-axis gyroscope-based mobile phone lottery number random selection method Download PDFInfo
- Publication number
- CN102629397A CN102629397A CN2012100702842A CN201210070284A CN102629397A CN 102629397 A CN102629397 A CN 102629397A CN 2012100702842 A CN2012100702842 A CN 2012100702842A CN 201210070284 A CN201210070284 A CN 201210070284A CN 102629397 A CN102629397 A CN 102629397A
- Authority
- CN
- China
- Prior art keywords
- random
- random number
- sign indicating
- mobile phone
- axis gyroscope
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Telephone Function (AREA)
- Time Recorders, Dirve Recorders, Access Control (AREA)
Abstract
The invention discloses a three-axis gyroscope-based mobile phone lottery number random selection method and relates to the technical field of mobile phone lottery number random selection. The three-axis gyroscope-based mobile phone lottery number random selection method comprises the following steps of 1, generating a random number seed based on a three-axis gyroscope by detecting a motion state of a mobile phone by the three-axis gyroscope of the mobile phone and recording the time from still to motion and from motion to still, wherein the time is utilized as the random number seed, and 2, generating a random bet number by utilizing the random number seed obtained by the step 1 as an input, calculating a random number according to the random number seed by a random number generation algorithm, and calculating a remainder according to the random number so that the random bet number is obtained. The three-axis gyroscope-based mobile phone lottery number random selection method has the advantages that a three-axis gyroscope of a smartphone is utilized for generation of a random bet number so that a novel experience way is provided for mobile phone lotteries.
Description
Technical field
The present invention relates to mobile phone lottery ticket method for selecting number technical field at random, specifically is a kind of based on three-axis gyroscope
The mobile phone lottery ticket is method for selecting number at random; Can be applicable to the smart mobile phone of any built-in three-axis gyroscope.
Background technology
At present, along with the continuous development of technology, smart mobile phone is universal day by day, and the mobile phone lottery ticket is also accepted by increasing people as a kind of emerging lottery ticket buying pattern.Smart mobile phone carries abundant sensor, how to utilize these to come for the mobile phone lottery ticket provides abundanter color experience of purchasing, and attracting more people to carry out the mobile phone stake just becomes an important direction; Do not have as yet at present and see and utilize three-axis gyroscope to come to generate at random the stake number.
Summary of the invention
The present invention provides a kind of mobile phone lottery ticket based on three-axis gyroscope method for selecting number at random, utilizes three-axis gyroscope to come to generate at random the stake number, realizes the numerical selection at random of mobile phone lottery ticket.
The present invention realizes with following technical scheme: a kind of mobile phone lottery ticket based on three-axis gyroscope is method for selecting number at random, comprises that random number seed based on three-axis gyroscope generates and annotates sign indicating number at random and generate; Concrete steps are following:
(1) generate based on the random number seed of three-axis gyroscope: the three-axis gyroscope that carries through smart mobile phone comes the motion state of detection of handset, notes mobile phone and returns static duration from static to motion; With duration as random number seed;
(2) annotate the generation of sign indicating number at random: the seed that generates in the step (1) as input, is obtained random number to this seed application random number generating algorithm, is that the basis is got remainder and obtained notes sign indicating number at random with this random number.
The invention has the beneficial effects as follows: utilized the three-axis gyroscope of smart mobile phone to generate and bet number at random, for the mobile phone lottery ticket provides new experience mode.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is done further explain:
Fig. 1 annotates sign indicating number to produce process flow diagram;
Fig. 2 is a kind of embodiment process flow diagram;
Fig. 3 is another kind of embodiment process flow diagram.
Embodiment
As shown in Figure 1, a kind of mobile phone lottery ticket based on three-axis gyroscope is method for selecting number at random, comprises that random number seed based on three-axis gyroscope generates and annotates sign indicating number at random and generate; Concrete steps are following:
(1) generate based on the random number seed of three-axis gyroscope: the three-axis gyroscope that carries through smart mobile phone comes the motion state of detection of handset, notes mobile phone and returns static duration from static to motion; With duration as random number seed;
(2) annotate the generation of sign indicating number at random: the seed that generates in the step (1) as input, is obtained random number to this seed application random number generating algorithm, is that the basis is got remainder and obtained notes sign indicating number at random with this random number.
1) random number seed based on three-axis gyroscope generates
If the start time of jitter time is
; Concluding time is
, and seed number is exactly the millisecond number of their difference so:
2) generation of notes sign indicating number at random
If the notes sign indicating number that obtains is
,
represents the notes sign indicating number that generates respectively the 1st to N time;
is the random number generating algorithm, and obtaining the mould of annotating sign indicating number is
;
Random number obtains first notes sign indicating number through the method for getting remainder and notes; Then with first random number as seed, use the random number algorithm again one time, obtain second random number, get remainder and obtain second and annotate sign indicating number; Annotate sign indicating number with second and compare with the notes sign indicating number that has write down, if not have and the notes code weight that write down again then directly note; , the some notes code weights that write down abandon this notes sign indicating number if having answered; Second random number used a random number algorithm again as seed obtain the 3rd random number; Get remainder then and obtain new notes sign indicating number and write down again and and annotate sign indicating number and compare, up to annotating sign indicating number and do not have repetition then to note with writing down; Follow-up notes sign indicating number also generates like this, requires to finish up to satisfying stake.
Embodiment 2 is as shown in Figure 3: with the millisecond number of duration as random number seed, this moment lottery ticket rule to allow to annotate code weight multiple, specific as follows:
1) random number seed based on three-axis gyroscope generates
If the start time of jitter time is
; Concluding time is
, and seed number is exactly the millisecond number of their difference so:
(1)
2) generation of notes sign indicating number at random
If the notes sign indicating number that obtains is
,
represents the notes sign indicating number that generates respectively the 1st to N time;
is the random number generating algorithm, and obtaining the mould of annotating sign indicating number is
;
(4)。
Random number obtains first through the method for getting remainder and annotates sign indicating number; Then with first random number as seed, use the random number algorithm again one time, obtain second random number, get remainder and obtain second and annotate sign indicating number; Obtain other according to said method and annotate sign indicating number, require to finish up to satisfying stake.
Claims (4)
1. one kind based on the mobile phone lottery ticket of three-axis gyroscope method for selecting number at random, it is characterized in that: comprise that random number seed based on three-axis gyroscope generates and annotates sign indicating number at random and generate; Concrete steps are following:
(1) generate based on the random number seed of three-axis gyroscope: the three-axis gyroscope that carries through smart mobile phone comes the motion state of detection of handset, notes mobile phone and returns static duration from static to motion; With duration as random number seed;
(2) annotate the generation of sign indicating number at random: the seed that generates in the step (1) as input, is obtained random number to this seed application random number generating algorithm, is that the basis is got remainder and obtained notes sign indicating number at random with this random number.
2. a kind of mobile phone lottery ticket based on three-axis gyroscope according to claim 1 is method for selecting number at random, it is characterized in that: with the millisecond number of duration as random number seed.
3. a kind of mobile phone lottery ticket based on three-axis gyroscope according to claim 1 and 2 is method for selecting number at random, it is characterized in that: when the lottery ticket rule does not allow to annotate code weight when multiple, random number obtains first through the method for getting remainder and annotates sign indicating number and note; Then with first random number as seed, use the random number algorithm again one time, obtain second random number, get remainder and obtain second and annotate sign indicating number; Annotate sign indicating number with second and compare with the notes sign indicating number that has write down, if not have and the notes code weight that write down again then directly note; , the some notes code weights that write down abandon this notes sign indicating number if having answered; Second random number used a random number algorithm again as seed obtain the 3rd random number; Get remainder then and obtain new notes sign indicating number and write down again and and annotate sign indicating number and compare, up to annotating sign indicating number and do not have repetition then to note with writing down; Follow-up notes sign indicating number also generates like this, requires to finish up to satisfying stake.
4. a kind of mobile phone lottery ticket based on three-axis gyroscope according to claim 1 and 2 is method for selecting number at random, it is characterized in that: when the lottery ticket rule allows to annotate code weight when multiple, random number obtains first through the method for getting remainder and annotates sign indicating number and note; Then with first random number as seed, use the random number algorithm again one time, obtain second random number, get remainder and obtain second and annotate sign indicating number and note; Obtain other according to said method and annotate sign indicating number, require to finish up to satisfying stake.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210070284.2A CN102629397B (en) | 2012-03-16 | 2012-03-16 | Three-axis gyroscope-based mobile phone lottery number random selection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210070284.2A CN102629397B (en) | 2012-03-16 | 2012-03-16 | Three-axis gyroscope-based mobile phone lottery number random selection method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102629397A true CN102629397A (en) | 2012-08-08 |
CN102629397B CN102629397B (en) | 2014-04-02 |
Family
ID=46587654
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210070284.2A Active CN102629397B (en) | 2012-03-16 | 2012-03-16 | Three-axis gyroscope-based mobile phone lottery number random selection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102629397B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530928A (en) * | 2013-10-09 | 2014-01-22 | 新彩软件无锡有限公司 | Sound-based mobile phone lottery random numerical selection method |
CN103617020A (en) * | 2013-12-23 | 2014-03-05 | 乐得科技有限公司 | Method and equipment for generating random number in application program |
CN103763375A (en) * | 2014-01-24 | 2014-04-30 | 北京壹平台科技有限公司 | Random lottery numerical selection method for mobile terminal |
CN103824372A (en) * | 2014-03-10 | 2014-05-28 | 北京壹平台科技有限公司 | Hand-shaking number selection method adopting MT (mobile terminal) |
CN104317551A (en) * | 2014-10-17 | 2015-01-28 | 北京德加才科技有限公司 | Ultrahigh-safety true random number generation method and ultrahigh-safety true random number generation system |
CN104598099A (en) * | 2013-12-24 | 2015-05-06 | 腾讯科技(深圳)有限公司 | Information processing method and device and payment system |
CN106406506A (en) * | 2015-07-29 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Method and device for generating random data by mobile terminal |
CN106952210A (en) * | 2017-03-13 | 2017-07-14 | 网易乐得科技有限公司 | Competing color lottery ticket choosing and selling method, device and readable storage medium storing program for executing based on mobile terminal |
US9811870B2 (en) | 2013-12-24 | 2017-11-07 | Tencent Technology (Shenzhen) Company Limited | Information processing method, apparatus and payment system |
CN111028409A (en) * | 2019-12-04 | 2020-04-17 | 中体彩科技发展有限公司 | Random lottery number selection system and method |
CN112416299A (en) * | 2020-10-10 | 2021-02-26 | 石家庄科林电气股份有限公司 | Method for acquiring random number by utilizing null shift data |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5330185A (en) * | 1993-03-30 | 1994-07-19 | Interlott, Inc. | Method and apparatus for random play of lottery games |
EP0855685A2 (en) * | 1997-01-27 | 1998-07-29 | Nec Corporation | An electronic lottery system and its operating method and computer-readable recording medium in which the electronic lottery program code is stored |
JP2003331333A (en) * | 2002-05-09 | 2003-11-21 | Nec Corp | Lottery device and program |
CN1655166A (en) * | 2005-02-10 | 2005-08-17 | 高中明 | Method for realizing lottery sale and purchase utilizing mobile phone |
CN101471959A (en) * | 2008-04-09 | 2009-07-01 | 深圳市星华晨科技有限公司 | Method for purchasing lottery by mobile phone |
CN102194271A (en) * | 2010-03-16 | 2011-09-21 | 李代甫 | Method, device and application for computer numerical selection |
CN102368337A (en) * | 2011-10-12 | 2012-03-07 | 袁子淇 | Random number selector of lottery |
-
2012
- 2012-03-16 CN CN201210070284.2A patent/CN102629397B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5330185A (en) * | 1993-03-30 | 1994-07-19 | Interlott, Inc. | Method and apparatus for random play of lottery games |
EP0855685A2 (en) * | 1997-01-27 | 1998-07-29 | Nec Corporation | An electronic lottery system and its operating method and computer-readable recording medium in which the electronic lottery program code is stored |
JP2003331333A (en) * | 2002-05-09 | 2003-11-21 | Nec Corp | Lottery device and program |
CN1655166A (en) * | 2005-02-10 | 2005-08-17 | 高中明 | Method for realizing lottery sale and purchase utilizing mobile phone |
CN101471959A (en) * | 2008-04-09 | 2009-07-01 | 深圳市星华晨科技有限公司 | Method for purchasing lottery by mobile phone |
CN102194271A (en) * | 2010-03-16 | 2011-09-21 | 李代甫 | Method, device and application for computer numerical selection |
CN102368337A (en) * | 2011-10-12 | 2012-03-07 | 袁子淇 | Random number selector of lottery |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530928A (en) * | 2013-10-09 | 2014-01-22 | 新彩软件无锡有限公司 | Sound-based mobile phone lottery random numerical selection method |
CN103617020A (en) * | 2013-12-23 | 2014-03-05 | 乐得科技有限公司 | Method and equipment for generating random number in application program |
CN103617020B (en) * | 2013-12-23 | 2018-03-23 | 网易乐得科技有限公司 | A kind of method and apparatus that random number is generated in application program |
US9811870B2 (en) | 2013-12-24 | 2017-11-07 | Tencent Technology (Shenzhen) Company Limited | Information processing method, apparatus and payment system |
CN104598099A (en) * | 2013-12-24 | 2015-05-06 | 腾讯科技(深圳)有限公司 | Information processing method and device and payment system |
CN103763375A (en) * | 2014-01-24 | 2014-04-30 | 北京壹平台科技有限公司 | Random lottery numerical selection method for mobile terminal |
CN103763375B (en) * | 2014-01-24 | 2019-04-30 | 北京壹平台科技有限公司 | A kind of random lottery numerical selection method for mobile terminal |
CN103824372A (en) * | 2014-03-10 | 2014-05-28 | 北京壹平台科技有限公司 | Hand-shaking number selection method adopting MT (mobile terminal) |
CN104317551A (en) * | 2014-10-17 | 2015-01-28 | 北京德加才科技有限公司 | Ultrahigh-safety true random number generation method and ultrahigh-safety true random number generation system |
CN106406506A (en) * | 2015-07-29 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Method and device for generating random data by mobile terminal |
CN106406506B (en) * | 2015-07-29 | 2021-05-25 | 腾讯科技(深圳)有限公司 | Method and device for generating random data by mobile terminal |
CN106952210A (en) * | 2017-03-13 | 2017-07-14 | 网易乐得科技有限公司 | Competing color lottery ticket choosing and selling method, device and readable storage medium storing program for executing based on mobile terminal |
CN111028409A (en) * | 2019-12-04 | 2020-04-17 | 中体彩科技发展有限公司 | Random lottery number selection system and method |
CN111028409B (en) * | 2019-12-04 | 2021-12-24 | 中体彩科技发展有限公司 | Random lottery number selection system and method |
CN112416299A (en) * | 2020-10-10 | 2021-02-26 | 石家庄科林电气股份有限公司 | Method for acquiring random number by utilizing null shift data |
Also Published As
Publication number | Publication date |
---|---|
CN102629397B (en) | 2014-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102629397A (en) | Three-axis gyroscope-based mobile phone lottery number random selection method | |
US11665502B2 (en) | Super geo-fences and virtual fences to improve efficiency of geo-fences | |
WO2020125839A1 (en) | Electronic element and electrically controlled display element | |
CN103119544B (en) | Method and apparatus for presenting location-based content | |
CN105283840B (en) | For synchronizing the equipment, method and graphic user interface of two or more displays | |
CN103460722B (en) | Method, equipment and device for carrying out activity classification using the time scaling to the feature on the basis of the time | |
US20170285774A1 (en) | Characterization and simulation of writing instruments | |
CN109962939A (en) | Position recommended method, device, server, terminal and storage medium | |
CN105074626B (en) | Detection and response to extras touch event | |
CN103776447B (en) | One closely intelligent movable equipment room localization method | |
CN107168539A (en) | A kind of equipment awakening method, device and electronic equipment | |
JP2014225229A5 (en) | ||
RU2015105174A (en) | DRIVING AID SYSTEM AND DRIVING ASSISTANCE METHOD | |
CN102833412A (en) | Mobile terminal and unlocking system and unlocking method for same | |
CN102624975A (en) | Method for unlocking mobile terminal | |
CN104598589A (en) | Intelligent tourist method and system based on image identification | |
JP2003323568A5 (en) | ||
CN103999044B (en) | For the technology that multipass is rendered | |
CN103824372A (en) | Hand-shaking number selection method adopting MT (mobile terminal) | |
CN104516650A (en) | Information processing method and electronic device | |
CN107679267B (en) | Helicopter mooring load determining method and device and electronic equipment | |
CN107209916A (en) | Caricature data presentation device and method | |
CN205986957U (en) | Visitor service pushing system with matching module | |
CN103065363B (en) | A kind of pole tower three-dimensional model quickly introduces scene method | |
CN103206953B (en) | It is used for when location producing the method for a geographic orientation and using the alignment system of the method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |