CN103763375A - Random lottery numerical selection method for mobile terminal - Google Patents

Random lottery numerical selection method for mobile terminal Download PDF

Info

Publication number
CN103763375A
CN103763375A CN201410033398.9A CN201410033398A CN103763375A CN 103763375 A CN103763375 A CN 103763375A CN 201410033398 A CN201410033398 A CN 201410033398A CN 103763375 A CN103763375 A CN 103763375A
Authority
CN
China
Prior art keywords
module
lottery
mobile phone
phone terminal
server
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
CN201410033398.9A
Other languages
Chinese (zh)
Other versions
CN103763375B (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.)
CHINA MOBILE LOTTERY E-PLATFORM TECHNOLOGY Co Ltd
Original Assignee
CHINA MOBILE LOTTERY E-PLATFORM TECHNOLOGY 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 CHINA MOBILE LOTTERY E-PLATFORM TECHNOLOGY Co Ltd filed Critical CHINA MOBILE LOTTERY E-PLATFORM TECHNOLOGY Co Ltd
Priority to CN201410033398.9A priority Critical patent/CN103763375B/en
Publication of CN103763375A publication Critical patent/CN103763375A/en
Application granted granted Critical
Publication of CN103763375B publication Critical patent/CN103763375B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a random lottery numerical selection method for a mobile terminal. The method comprises the steps of A, user authentication; B, downloading real-time lottery information; C, selecting lottery purchasing type and quantity; D, collecting data with a gyro; E, generating random data with the collected data; F, sending information and confirming purchase. According to the random lottery numerical selection method for a mobile terminal, the defects of the prior art can be overcome; the optimized random numerical selection process is conducted on the mobile phone terminal, and in this way, operation pressure of a server is greatly reduced, responding speed of the server is increased, and using fluency is improved for users at the same time.

Description

A kind of lottery ticket random selecting numbers method for mobile terminal
Technical field
The present invention relates to communication technique field, especially a kind of lottery ticket random selecting numbers method for mobile terminal.
Background technology
Along with being surging forward of lottery ticket industry, the management style of traditional Betting Station can not meet numerous lottery fans' demand.Use smart mobile phone on-line purchase lottery ticket to become gradually a kind of emerging lottery ticket and buy approach.But existing mobile phone is bought in lottery ticket method, if employing random selecting numbers, by remote server, carry out random selecting numbers operation, this has just brought very large computing pressure to remote server, while causing lottery fan to use mobile phone to buy lottery ticket, usually occur that network connects the problems such as overtime, service provider also needs to spend the continuous upgrade server of substantial contribution, to meet growing user's request.This problem has become a bottleneck that uses mobile phone stochastic buying lottery ticket.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of lottery ticket random selecting numbers method for mobile terminal, can solve the deficiencies in the prior art, by the random selecting numbers process being optimized at mobile phone terminal, greatly reduce the computing pressure of server, improve the reaction speed of server, also improved the fluency that user uses simultaneously.
For solving the problems of the technologies described above, the technical solution used in the present invention is as follows.
A kind of lottery ticket random selecting numbers method for mobile terminal, the method use mobile phone terminal carries out communication with central lottery server and is connected, mobile phone terminal comprises input/output module, gyro module, memory module, wireless communication module and data processing module, central lottery server comprises FWSM, secure verification module, wireless communication module and database module, comprises the following steps:
A, user use mobile phone terminal to be connected with central lottery server by wireless communication module, and input user name, password by the checking of secure verification module;
B, mobile phone terminal are downloaded real-time lottery information from central lottery server, and are presented in input/output module;
C, user select according to the lottery information showing lottery ticket kind, the quantity that will buy by input/output module;
D, rock mobile phone terminal, gyro module is stored in the three-D displacement data that capture and three dimensional angular speed data in memory module, and three-D displacement data are respectively X, Y, Z, and three dimensional angular speed data is respectively A, B, C;
E, according to lottery ticket kind and quantity purchase definite in step C, data processing module is used three-D displacement data X, Y, Z and three dimensional angular speed data to be respectively A, B, C and generates immediately lottery number, and generation result is presented in input/output module;
After F, user confirm, data processing module is by lottery information boil down to packet, by wireless communication module, be transferred in the database module of central lottery server and store, central lottery server sends acknowledgement information to mobile phone terminal by wireless communication module after storing successfully.
Preferably, in steps A, with mobile phone terminal, by name in an account book, Cryptographic, be that dark text transmits, central lottery server is expressly to verify by the dark text decompiling receiving.
Preferably, in step D, the sample frequency of gyro module is 20Hz~50Hz.
Preferably, in step e, use three-D displacement data X, Y, Z to pass through formula
Generating digital portion,
Use three dimensional angular speed data A, B, C to pass through formula
Position portion=1/s in[arctan (A/B)+arctan (A/C)+arctan (B/C)]
Generate position portion, then by generating random number chosen position portion, then determine digital section by the location of position portion, the numeral of the digital section of selecting is data in lottery number, then repeats said process until all lottery number is selected.
Preferably, wireless communication module adopts http protocol to carry out communication transfer.
The beneficial effect that adopts technique scheme to bring is: the present invention realizes the function of carrying out random selecting numbers at mobile phone terminal, greatly reduces the operating pressure of server, has saved the operation cost of operator, has improved user's experience.
Accompanying drawing explanation
Fig. 1 is hardware schematic diagram in embodiment of the present invention.
In figure, 1, input/output module; 2, gyro module; 3, memory module; 4, wireless communication module; 5, data processing module; 6, FWSM; 7, secure verification module; 8, database module.
Embodiment
With reference to accompanying drawing, a kind of lottery ticket random selecting numbers method for mobile terminal, the method use mobile phone terminal carries out communication with central lottery server and is connected, mobile phone terminal comprises input/output module 1, gyro module 2, memory module 3, wireless communication module 4 and data processing module 5, central lottery server comprises FWSM 6, secure verification module 7, wireless communication module 4 and database module 8, comprises the following steps:
A, user use mobile phone terminal to be connected with central lottery server by wireless communication module 4, and input user name, password by the checking of secure verification module 7;
B, mobile phone terminal are downloaded real-time lottery information from central lottery server, and are presented in input/output module 1;
C, user select by input/output module 1 lottery ticket kind, the quantity that will buy according to the lottery information showing;
D, rock mobile phone terminal, gyro module 2 is stored in the three-D displacement data that capture and three dimensional angular speed data in memory module 3, and three-D displacement data are respectively X, Y, Z, and three dimensional angular speed data is respectively A, B, C;
E, according to lottery ticket kind and quantity purchase definite in step C, data processing module 5 is used three-D displacement data X, Y, Z and three dimensional angular speed data to be respectively A, B, C and generates immediately lottery number, and generation result is presented in input/output module 1;
After F, user confirm, data processing module 5 is by lottery information boil down to packet, by wireless communication module 4, be transferred to storage in the database module 8 of central lottery server, central lottery server passes through wireless communication module 4 transmission acknowledgement information to mobile phone terminal after store successfully.
It should be noted that in steps A, is that dark text transmits with mobile phone terminal by name in an account book, Cryptographic, and central lottery server is expressly to verify by the dark text decompiling receiving.
It should be noted that in step D, the sample frequency of gyro module is 35Hz.
It should be noted that in step e, use three-D displacement data X, Y, Z to pass through formula
Figure BSA0000100738020000041
Generating digital portion,
Use three dimensional angular speed data A, B, C to pass through formula
Position portion=1/sin[arctan (A/B)+arctan (A/C)+arctan (B/C)]
Generate position portion, then by generating random number chosen position portion, then determine digital section by the location of position portion, the numeral of the digital section of selecting is data in lottery number, then repeats said process until all lottery number is selected.
Wherein, the process that random number produces is: first determine and two initial value and a prime number two initial value are carried out to oval computing, operation result and prime number are divided by and rem, and remainder is required random number.
By using said method, can reduce more than 70% operand of server end, simultaneously owing to carrying out random selecting numbers at mobile phone terminal, speed is fast, and user experience is good.
More than show and described basic principle of the present invention and principal character and advantage of the present invention.The technical staff of the industry should understand; the present invention is not restricted to the described embodiments; that in above-described embodiment and specification, describes just illustrates principle of the present invention; without departing from the spirit and scope of the present invention; the present invention also has various changes and modifications, and these changes and improvements all fall in the claimed scope of the invention.The claimed scope of the present invention is defined by appending claims and equivalent thereof.

Claims (5)

1. the lottery ticket random selecting numbers method for mobile terminal, the method use mobile phone terminal carries out communication with central lottery server and is connected, mobile phone terminal comprises input/output module (1), gyro module (2), memory module (3), wireless communication module (4) and data processing module (5), central lottery server comprises FWSM (6), secure verification module (7), wireless communication module (4) and database module (8), it is characterized in that comprising the following steps:
A, user use mobile phone terminal to pass through wireless communication module (4) to be connected with central lottery server, and input user name, password by the checking of secure verification module (7);
B, mobile phone terminal are downloaded real-time lottery information from central lottery server, and are presented in input/output module (1);
C, user select lottery ticket kind, the quantity that will buy by input/output module (1) according to the lottery information showing;
D, rock mobile phone terminal, gyro module (2) is stored in the three-D displacement data that capture and three dimensional angular speed data in memory module (3), and three-D displacement data are respectively X, Y, Z, and three dimensional angular speed data is respectively A, B, C;
E, according to lottery ticket kind and quantity purchase definite in step C, data processing module (5) is used three-D displacement data X, Y, Z and three dimensional angular speed data to be respectively A, B, C and generates immediately lottery number, and generation result is presented in input/output module (1);
After F, user confirm, data processing module (5) is by lottery information boil down to packet, by wireless communication module (4), be transferred to the middle storage of database module (8) of central lottery server, central lottery server sends acknowledgement information to mobile phone terminal by wireless communication module (4) after storing successfully.
2. the lottery ticket random selecting numbers method for mobile terminal according to claim 1, is characterized in that: in steps A, with mobile phone terminal, by name in an account book, Cryptographic, be that dark text transmits, central lottery server is expressly to verify by the dark text decompiling receiving.
3. the lottery ticket random selecting numbers method for mobile terminal according to claim 1, is characterized in that: in step D, the sample frequency of gyro module (2) is 20Hz~50Hz.
4. the lottery ticket random selecting numbers method for mobile terminal according to claim 1, is characterized in that: in step e, use three-D displacement data X, Y, Z to pass through formula
Figure FSA0000100738010000021
Generating digital portion,
Use three dimensional angular speed data A, B, C to pass through formula
Position portion=1/s in[arctan (A/B)+arctan (A/C)+arctan (B/C)]
Generate position portion, then by generating random number chosen position portion, then determine digital section by the location of position portion, the numeral of the digital section of selecting is data in lottery number, then repeats said process until all lottery number is selected.
5. the lottery ticket random selecting numbers method for mobile terminal according to claim 1, is characterized in that: wireless communication module (4) adopts http protocol to carry out communication transfer.
CN201410033398.9A 2014-01-24 2014-01-24 A kind of random lottery numerical selection method for mobile terminal Expired - Fee Related CN103763375B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410033398.9A CN103763375B (en) 2014-01-24 2014-01-24 A kind of random lottery numerical selection method for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410033398.9A CN103763375B (en) 2014-01-24 2014-01-24 A kind of random lottery numerical selection method for mobile terminal

Publications (2)

Publication Number Publication Date
CN103763375A true CN103763375A (en) 2014-04-30
CN103763375B CN103763375B (en) 2019-04-30

Family

ID=50530534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410033398.9A Expired - Fee Related CN103763375B (en) 2014-01-24 2014-01-24 A kind of random lottery numerical selection method for mobile terminal

Country Status (1)

Country Link
CN (1) CN103763375B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105469250A (en) * 2015-11-23 2016-04-06 腾讯科技(深圳)有限公司 Data processing method and terminal thereof
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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1493979A (en) * 2002-10-28 2004-05-05 徐向农 Lottery ticket mobile investment in interface and short message produce method
CN102629397A (en) * 2012-03-16 2012-08-08 江苏新彩软件有限公司 Three-axis gyroscope-based mobile phone lottery number random selection method
CN102982602A (en) * 2012-11-23 2013-03-20 北京深思洛克软件技术股份有限公司 Method for selecting lottery number used for mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1493979A (en) * 2002-10-28 2004-05-05 徐向农 Lottery ticket mobile investment in interface and short message produce method
CN102629397A (en) * 2012-03-16 2012-08-08 江苏新彩软件有限公司 Three-axis gyroscope-based mobile phone lottery number random selection method
CN102982602A (en) * 2012-11-23 2013-03-20 北京深思洛克软件技术股份有限公司 Method for selecting lottery number used for mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ALIN SUCIU等: "Unpredictable Random Number Generator Based on Mobile Sensors", 《2011 IEEE 7TH INTERNATIONAL CONFERENCE ON INTELLIGENT COMPUTER COMMUNICATION AND PROCESSING》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105469250A (en) * 2015-11-23 2016-04-06 腾讯科技(深圳)有限公司 Data processing method and terminal thereof
CN105469250B (en) * 2015-11-23 2021-03-16 腾讯科技(深圳)有限公司 Data processing method and 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

Also Published As

Publication number Publication date
CN103763375B (en) 2019-04-30

Similar Documents

Publication Publication Date Title
CN102737308B (en) The method and system of a kind of mobile terminal and inquiry smart card information thereof
US20200342439A1 (en) Method, client device and pos terminal for offline transaction
JP2015508541A5 (en)
CN102724310A (en) Method using mobile terminal to implement cloud searching
CN105279684A (en) System and method for safely transferring electronic ticket through near field communication technology
CN105118006A (en) Online and offline health service multi-union promotion processing system and method
CN105872102A (en) File uploading and downloading method
CN101699892A (en) Method and device for generating dynamic passwords and network system
CN102737065A (en) Method and device for acquiring data
CN103577983A (en) Load method of electronic currency for off-line consumption
CN101860824B (en) Digital signature authentication system based on short message and digital signature method
CN108805558A (en) A kind of offline electronic payment method and offline electronic payment system
CN101944257A (en) Safety method for realizing on-line reporting of tax control machine
CN102496125A (en) Transferring method and system based on mobile terminal
CN103107888B (en) The identity identifying method that the dynamic multi-attribute of facing moving terminal is multi-level
CN102457842A (en) Method, device and system for transaction by mobile phone
CN106972961A (en) A kind of safety means firmware upgrade method based on bluetooth
CN103530768A (en) Mobile communication payment system and cost payment method thereof
WO2016019206A1 (en) Smart card reader with public key index on host device
CN105243541A (en) BLE Bluetooth and sound wave combined mobile payment method and system
CN103763375A (en) Random lottery numerical selection method for mobile terminal
CN102509212A (en) Method for transaction between two mobile terminals through gesture operation
CN102567908A (en) Method and system for processing data based on e-business
CN101931530A (en) Generation method, authentication method and device for dynamic password and network system
CN104618331A (en) Online shopping user registration method and registration system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190430

Termination date: 20220124

CF01 Termination of patent right due to non-payment of annual fee