CN103530928B - A kind of cell phone lottery random selecting numbers method based on sound - Google Patents

A kind of cell phone lottery random selecting numbers method based on sound Download PDF

Info

Publication number
CN103530928B
CN103530928B CN201310466413.4A CN201310466413A CN103530928B CN 103530928 B CN103530928 B CN 103530928B CN 201310466413 A CN201310466413 A CN 201310466413A CN 103530928 B CN103530928 B CN 103530928B
Authority
CN
China
Prior art keywords
random number
note code
random
seed
code
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.)
Active
Application number
CN201310466413.4A
Other languages
Chinese (zh)
Other versions
CN103530928A (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.)
New Color Software Wuxi Co Ltd
Original Assignee
New Color Software Wuxi 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 New Color Software Wuxi Co Ltd filed Critical New Color Software Wuxi Co Ltd
Priority to CN201310466413.4A priority Critical patent/CN103530928B/en
Publication of CN103530928A publication Critical patent/CN103530928A/en
Application granted granted Critical
Publication of CN103530928B publication Critical patent/CN103530928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of cell phone lottery random selecting numbers method based on sound, generate including the random number seed based on wave volume, namely by the wave volume of the voice-input device detection smart mobile phone surrounding enviroment of smart mobile phone, and record volume and exceed time when setting threshold value, and using this time step as random number seed;And the random generation noting code, namely the random number seed of above-mentioned generation is as input, by Generating Random Number, this random number seed is obtained random number, and remainder number is noted the step of code at random based on this random number.Generating random number seed using wave volume size as trigger condition, thus generating stake number, in the process of stake, having reached to strengthen the purpose that cell phone lottery stake is interesting.New experience mode is provided for cell phone lottery.

Description

A kind of cell phone lottery random selecting numbers method based on sound
Technical field
The present invention relates to communication network field, in particular it relates to a kind of cell phone lottery random selecting numbers method based on sound.
Background technology
At present, along with smart mobile phone becomes increasingly popular, cell phone lottery is also accepted by increasing people.Mobile phone and the combination of lottery ticket, bring more experience being rich in interactivity for users, and existing lottery ticket choosing and selling mode be mainly numerical selection or stochastic generation two ways.
Summary of the invention
The mode of above-mentioned employing numerical selection or the stake of stochastic generation two ways is more dull, it is impossible to fully bring punter's enjoyment.
It is an object of the invention to, for the problems referred to above, it is proposed to a kind of cell phone lottery random selecting numbers method based on sound, to realize strengthening the advantage that cell phone lottery stake is interesting.
For achieving the above object, the technical solution used in the present invention is:
A kind of cell phone lottery random selecting numbers method based on sound, including
Random number seed based on wave volume generates, and namely by the wave volume of the voice-input device of smart mobile phone detection smart mobile phone surrounding enviroment, and records volume and exceedes time when setting threshold value, and using this time step as random number seed;
And
The random generation noting code, namely the random number seed of above-mentioned generation is as input, by Generating Random Number, this random number seed is obtained random number, and remainder number is noted the step of code at random based on this random number.
According to a preferred embodiment of the invention, also include according to lottery ticket choosing and selling rule, multiple randoms number are generated according to the above-mentioned repeatedly utilization Generating Random Number obtaining random number seed, and the multiple randoms number remainder respectively generated is obtained multiple random note code, until obtain the step of complete lottery number.
According to a preferred embodiment of the invention, when lottery ticket choosing and selling rule does not allow note code to repeat, based on the random number seed of above-mentioned generation, apply a Generating Random Number, obtain a random number, this random number adopts remainder number obtain first note code;Then proceed to based on this random number seed, apply Generating Random Number and obtain second random number, this random number adopts remainder number obtain second note code, and second note code and first note code are compared, without repeating, remain;If be repeated, abandon this note code, repeat application Generating Random Number and obtain random number, then remainder number is as new note code, and so circulation is until obtaining the note code that one and first note code differs, and continues to repeatedly generate note code until meeting the number of lottery ticket choosing and selling rule.
According to a preferred embodiment of the invention, when lottery ticket choosing and selling rule allows note code to repeat, based on random number seed, apply a Generating Random Number, obtain a random number, this random number adopts remainder number obtain first note code;Then proceed to based on random number seed, apply Generating Random Number and obtain second random number, this random number adopts remainder number obtain second note code;Continue to repeatedly generate note code until meeting the number of lottery ticket choosing and selling rule.
According to a preferred embodiment of the invention, described in record volume exceed set threshold value time time, its unit of time is microsecond.
Technical scheme has the advantages that
Technical scheme generates random number seed using wave volume size as trigger condition, thus generating stake number, in the process of stake, has reached to strengthen the purpose that cell phone lottery stake is interesting.New experience mode is provided for cell phone lottery.
Below by drawings and Examples, technical scheme is described in further detail.
Accompanying drawing explanation
Fig. 1 is the flow chart of the cell phone lottery random selecting numbers method based on sound described in the embodiment of the present invention one;
Fig. 2 is the flow chart of the cell phone lottery random selecting numbers method based on sound described in the embodiment of the present invention two;
Fig. 3 is the flow chart of the cell phone lottery random selecting numbers method based on sound described in the embodiment of the present invention three.
Detailed description of the invention
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are illustrated, it will be appreciated that preferred embodiment described herein is merely to illustrate and explains the present invention, is not intended to limit the present invention.
Embodiment one:
As it is shown in figure 1,
A kind of cell phone lottery random selecting numbers method based on sound, including
Random number seed based on wave volume generates, and namely by the wave volume of the voice-input device of smart mobile phone detection smart mobile phone surrounding enviroment, and records volume and exceedes time when setting threshold value, and using this time step as random number seed;
And
The random generation noting code, namely the random number seed of above-mentioned generation is as input, by Generating Random Number, this random number seed is obtained random number, and remainder number is noted the step of code at random based on this random number.
Wherein, according to lottery ticket choosing and selling rule, it is necessary to the repeatedly utilization Generating Random Number obtaining random number seed is generated multiple randoms number, and the multiple randoms number remainder respectively generated is obtained multiple random note code, until obtaining the step of complete lottery number.
The note code that do not allow having because of lottery ticket choosing and selling rule repeats, some permissions note code repeats, when not allowing note code to repeat, and Generating Random Number of application based on the random number seed generated, obtain a random number, this random number adopts remainder number obtain first note code;Then proceed to based on this random number seed, apply Generating Random Number and obtain second random number, this random number adopts remainder number obtain second note code, and second note code and first note code are compared, without repeating, remain;If be repeated, abandon this note code, repeat application Generating Random Number and obtain random number, then remainder number is as new note code, and so circulation is until obtaining the note code that one and first note code differs, and continues to repeatedly generate note code until meeting the number of lottery ticket choosing and selling rule.When lottery ticket choosing and selling rule allows note code to repeat, based on random number seed, apply a Generating Random Number, obtain a random number, this random number adopts remainder number obtain first note code;Then proceed to based on random number seed, apply Generating Random Number and obtain second random number, this random number adopts remainder number obtain second note code;Continue to repeatedly generate note code until meeting the number of lottery ticket choosing and selling rule.Recording volume and exceed time when setting threshold value, its unit of time is microsecond.
Embodiment two:
As shown in Figure 2
Using the time (being accurate to microsecond) as random number seed, now lottery ticket rule does not allow code to repeat, specific as follows:
Random number seed based on wave volume generates
If user starts to start sound random selecting numbers function, microphone starts to detect periphery volume situation, time when volume is more than certain threshold value (such as 30 decibels), takes this timeAs random number seed, time when namely volume is more than 30 decibels;
The random generation noting code
If random number is,Represent the 1st random number generated to n times respectively;
If the note code obtained is,Represent the 1st note code generated to n times respectively;Being Generating Random Number, Generating Random Number is existing algorithm.The mould obtaining note code is, it is shown below:
Random number obtains first note code by the method for remainder number;Then withSeed, reapplies a random number algorithm, obtains second random number, and remainder number obtains second note code;Second note code and note code i.e. the first note code produced before are compared, without repeating, records;If be repeated, abandon this note code, and withFor seed, application random number algorithm obtains random number again, until obtaining the note code different with existing note code.Follow-up note code also generates like this, terminates until meeting stake requirement.
Embodiment three:
As shown in Figure 3
Using the time (being accurate to microsecond) as random number seed, now lottery ticket rule allows code to repeat, specific as follows:
Random number seed based on wave volume generates
If user starts to start sound random selecting numbers function, microphone starts to detect periphery volume situation, when volume is more than certain threshold value (such as 30 decibels), takes this timeAs random number seed;
The random generation noting code
If random number is,Represent the 1st random number generated to n times respectively;
If the note code obtained is,Represent the 1st note code generated to n times respectively;Being Generating Random Number, the mould obtaining note code is
Random number obtains first note code by the method for remainder number;Then will be withFor seed, reapplying a random number algorithm, obtain second random number, remainder number obtains the second note code;Obtaining other note code according to said method, terminating until meeting stake requirement.
Last it is noted that the foregoing is only the preferred embodiments of the present invention, it is not limited to the present invention, although the present invention being described in detail with reference to previous embodiment, for a person skilled in the art, technical scheme described in foregoing embodiments still can be modified by it, or wherein portion of techniques feature carries out equivalent replacement.All within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within protection scope of the present invention.

Claims (5)

1. the cell phone lottery random selecting numbers method based on sound, it is characterised in that include
Random number seed based on wave volume generates, and namely by the wave volume of the voice-input device of smart mobile phone detection smart mobile phone surrounding enviroment, and records volume and exceedes time when setting threshold value, and using this time step as random number seed;
And
The random generation noting code, namely the random number seed of above-mentioned generation is as input, by Generating Random Number, this random number seed is obtained random number, and remainder number is noted the step of code at random based on this random number.
2. the cell phone lottery random selecting numbers method based on sound according to claim 1, it is characterized in that, also include according to lottery ticket choosing and selling rule, and above-mentioned obtain random number seed repeatedly use Generating Random Number generate multiple randoms number, and the multiple randoms number remainder respectively generated is obtained multiple random note code, until obtain the step of complete lottery number.
3. the cell phone lottery random selecting numbers method based on sound according to claim 2, it is characterised in that
When lottery ticket choosing and selling rule does not allow note code to repeat, based on the random number seed of above-mentioned generation, apply a Generating Random Number, obtain a random number, this random number adopts remainder number obtain first note code;Then proceed to based on this random number seed, apply Generating Random Number and obtain second random number, this random number adopts remainder number obtain second note code, and second note code and first note code are compared, without repeating, remain;If be repeated, abandon this note code, repeat application Generating Random Number and obtain random number, then remainder number is as new note code, and so circulation is until obtaining the note code that one and first note code differs, and continues to repeatedly generate note code until meeting the number of lottery ticket choosing and selling rule.
4. the cell phone lottery random selecting numbers method based on sound according to claim 2, it is characterized in that, when lottery ticket choosing and selling rule allows note code to repeat, a Generating Random Number is applied based on random number seed, obtain a random number, this random number adopts remainder number obtain first note code;Then proceed to based on random number seed, apply Generating Random Number and obtain second random number, this random number adopts remainder number obtain second note code;Continue to repeatedly generate note code until meeting the number of lottery ticket choosing and selling rule.
5. according to the arbitrary described cell phone lottery random selecting numbers method based on sound of Claims 1-4, it is characterised in that described in record volume and exceed time when setting threshold value, its unit of time is microsecond.
CN201310466413.4A 2013-10-09 2013-10-09 A kind of cell phone lottery random selecting numbers method based on sound Active CN103530928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310466413.4A CN103530928B (en) 2013-10-09 2013-10-09 A kind of cell phone lottery random selecting numbers method based on sound

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310466413.4A CN103530928B (en) 2013-10-09 2013-10-09 A kind of cell phone lottery random selecting numbers method based on sound

Publications (2)

Publication Number Publication Date
CN103530928A CN103530928A (en) 2014-01-22
CN103530928B true CN103530928B (en) 2016-06-29

Family

ID=49932905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310466413.4A Active CN103530928B (en) 2013-10-09 2013-10-09 A kind of cell phone lottery random selecting numbers method based on sound

Country Status (1)

Country Link
CN (1) CN103530928B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928523B (en) * 2019-12-04 2021-11-19 中体彩科技发展有限公司 Random number acquisition method and system for lottery industry
CN111028409B (en) * 2019-12-04 2021-12-24 中体彩科技发展有限公司 Random lottery number selection system and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050033649A1 (en) * 2001-12-12 2005-02-10 Aruze Corporation Premium drawing system
CN102982604A (en) * 2012-12-11 2013-03-20 江苏新彩软件有限公司 Mobile phone lottery ticket number selection method based on speech recognition

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629397B (en) * 2012-03-16 2014-04-02 江苏新彩软件有限公司 Three-axis gyroscope-based mobile phone lottery number random selection method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050033649A1 (en) * 2001-12-12 2005-02-10 Aruze Corporation Premium drawing system
CN102982604A (en) * 2012-12-11 2013-03-20 江苏新彩软件有限公司 Mobile phone lottery ticket number selection method based on speech recognition

Also Published As

Publication number Publication date
CN103530928A (en) 2014-01-22

Similar Documents

Publication Publication Date Title
Chae et al. Enhanced secrecy in stochastic wireless networks: Artificial noise with secrecy protected zone
CN104219050A (en) Voiceprint verification method and system, voiceprint verification server and voiceprint verification client side
WO2009067400A3 (en) Server-client interaction and information management system
CN103152324B (en) The user authen method of Behavior-based control feature
CN105357006A (en) Method and equipment for performing security authentication based on voiceprint feature
EP2733635A3 (en) Mobile communications device providing heuristic security authentication features and related methods
CN102074240B (en) Digital audio watermarking algorithm for copyright management
ATE290742T1 (en) METHOD FOR AGGREGATION AND TRANSMITTING MULTIMEDIA DATA
CN103716309A (en) Security authentication method and terminal
CN102123148A (en) Authentication method, system and device based on dynamic password
CN110312146A (en) Audio-frequency processing method, device, electronic equipment and storage medium
CN105205894A (en) Audio frequency recognition method based on access control and access control system adopting audio frequency recognition
CN105550557A (en) Method for logging in different systems through fingerprint recognition and terminal device
CN103530928B (en) A kind of cell phone lottery random selecting numbers method based on sound
CN108809482A (en) The speed matching method and device of Polar codes
CN106782498B (en) Voice information playing method and device and terminal
EP2908312A1 (en) Self-adaptive intelligent voice device and method
CN103281186B (en) A kind of dynamic token based on Android system, transaction system and method
CN106161018A (en) A kind of method and apparatus managing classification password
CN103957104A (en) Dynamic token anti-phishing method and device
CN204362091U (en) A kind of fingerprint recognition router
CN103856331B (en) A kind of signature authentication method and system
CN110310636A (en) Interaction control method, device, equipment and audio frequency apparatus
CN104992698A (en) Song on-demand arrangement method and device for KTV song-on-demand system
KR100950856B1 (en) System and Method for transmitting replying message using sound code, and user created contents providing server and mobile communication terminal therefor

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