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 PDF

Info

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
Application number
CN2012100702842A
Other languages
Chinese (zh)
Other versions
CN102629397B (en
Inventor
耿喆
刘洪马
刘峰
王学奎
黄海波
吴仲喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JIANGSU XINCAI SOFTWARE CO Ltd
Original Assignee
JIANGSU XINCAI SOFTWARE CO Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by JIANGSU XINCAI SOFTWARE CO Ltd filed Critical JIANGSU XINCAI SOFTWARE CO Ltd
Priority to CN201210070284.2A priority Critical patent/CN102629397B/en
Publication of CN102629397A publication Critical patent/CN102629397A/en
Application granted granted Critical
Publication of CN102629397B publication Critical patent/CN102629397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

A kind of mobile phone lottery ticket based on three-axis gyroscope is method for selecting number at random
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.
Embodiment 1 is as shown in Figure 2: with the millisecond number of duration as random number seed, this moment the lottery ticket rule not 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
Figure 266936DEST_PATH_IMAGE002
, and seed number is exactly the millisecond number of their difference so:
Figure 875947DEST_PATH_IMAGE003
(1)
2) generation of notes sign indicating number at random
If random number is
Figure 691719DEST_PATH_IMAGE004
,
Figure 778493DEST_PATH_IMAGE005
represent the 1st to arrive the random number of N generation respectively;
If the notes sign indicating number that obtains is
Figure 970702DEST_PATH_IMAGE006
,
Figure 960786DEST_PATH_IMAGE005
represents the notes sign indicating number that generates respectively the 1st to N time;
Figure 445994DEST_PATH_IMAGE007
is the random number generating algorithm, and obtaining the mould of annotating sign indicating number is
Figure 459211DEST_PATH_IMAGE008
;
Figure 15963DEST_PATH_IMAGE009
(2)
Figure 532658DEST_PATH_IMAGE010
?
Figure 454346DEST_PATH_IMAGE011
(3)
Figure 689281DEST_PATH_IMAGE012
(4)。
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
Figure 987407DEST_PATH_IMAGE001
; Concluding time is
Figure 561870DEST_PATH_IMAGE002
, and seed number is exactly the millisecond number of their difference so:
(1)
2) generation of notes sign indicating number at random
If random number is
Figure 388409DEST_PATH_IMAGE004
,
Figure 224647DEST_PATH_IMAGE005
represent the 1st to arrive the random number of N generation respectively;
If the notes sign indicating number that obtains is
Figure 715933DEST_PATH_IMAGE006
,
Figure 979424DEST_PATH_IMAGE005
represents the notes sign indicating number that generates respectively the 1st to N time;
Figure 188951DEST_PATH_IMAGE007
is the random number generating algorithm, and obtaining the mould of annotating sign indicating number is
Figure 500984DEST_PATH_IMAGE008
;
Figure 610891DEST_PATH_IMAGE009
(2)
?
Figure 742106DEST_PATH_IMAGE011
(3)
(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.
CN201210070284.2A 2012-03-16 2012-03-16 Three-axis gyroscope-based mobile phone lottery number random selection method Active CN102629397B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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