CN103763375B - A kind of random lottery numerical selection method for mobile terminal - Google Patents
A kind of random lottery numerical selection method for mobile terminal Download PDFInfo
- Publication number
- CN103763375B CN103763375B CN201410033398.9A CN201410033398A CN103763375B CN 103763375 B CN103763375 B CN 103763375B CN 201410033398 A CN201410033398 A CN 201410033398A CN 103763375 B CN103763375 B CN 103763375B
- Authority
- CN
- China
- Prior art keywords
- module
- lottery
- mobile phone
- data
- phone terminal
- 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.)
- Expired - Fee Related
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of random lottery numerical selection methods for mobile terminal, and step includes: A, user's checking;B, real-time lottery information is downloaded;C, it selectes lottery ticket and buys type, quantity;D, gyroscope acquires data;E, random data is generated using collected data;F, it sends information and confirms purchase.The present invention can improve the deficiencies in the prior art, by the random selecting numbers process optimized in mobile phone terminal, greatly reduce the operation pressure of server, improve the reaction speed of server, while also improving the fluency that user uses.
Description
Technical field
The present invention relates to communication technique field, especially a kind of random lottery numerical selection method for mobile terminal.
Background technique
With being surging forward for lottery industry, the management style of traditional Betting Station is no longer satisfied the need of numerous lottery fans
It asks.A kind of emerging lottery ticket purchase approach has been increasingly becoming using smart phone on-line purchase lottery ticket.But existing mobile phone purchase
It buys in lottery ticket method, if carrying out random selecting numbers operation by remote server, this just gives remote service using random selecting numbers
Device brings very big operation pressure, network connection time-out usually occurs when leading to lottery fan using mobile phone purchase lottery ticket,
Service provider is also required to spend the continuous upgrade server of substantial contribution, to meet growing user demand.This problem
Have become a bottleneck using 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 random lottery numerical selection methods for mobile terminal, can solve
Certainly the deficiencies in the prior art greatly reduce the fortune of server by the random selecting numbers process optimized in mobile phone terminal
Pressure is calculated, improves the reaction speed of server, while also improving the fluency that user uses.
In order to solve the above technical problems, the technical solution used in the present invention is as follows.
A kind of random lottery numerical selection method for mobile terminal, this method use mobile phone terminal and central lottery server
Communication connection is carried out, mobile phone terminal includes input/output module, gyro module, memory module, wireless communication module and data
Processing module, central lottery server include firewall module, secure verification module, wireless communication module and database module,
The following steps are included:
A, user is attached using mobile phone terminal by wireless communication module and central lottery server, and inputs user
The verifying that name, password pass through secure verification module;
B, mobile phone terminal downloads real-time lottery information from central lottery server, and is shown in input/output module;
C, user selects lottery ticket type, the quantity to be bought by input/output module according to the lottery information of display;
D, mobile phone terminal is shaken, the three-D displacement data captured and three-dimensional angular velocity data are stored in by gyro module
In memory module, three-D displacement data are respectively X, Y, Z, and three-dimensional angular velocity data are respectively A, B, C;
E, according in step C determine lottery ticket type and quantity purchase, data processing module using three-D displacement data X,
Y, Z and three-dimensional angular velocity data are respectively that A, B, C generate lottery number immediately, and will generate as the result is shown in input/output module
On;
F, after user's confirmation, data processing module transmits lottery information boil down to data packet by wireless communication module
It is stored into the database module of central lottery server, central lottery server passes through wireless communication module after storing successfully
Acknowledgement information is sent to mobile phone terminal.
It preferably, by name in an account book, Cryptographic is dark text transmission with mobile phone terminal, central lottery server will connect in step A
The dark text decompiling being subject to is to be verified in plain text.
Preferably, in step D, the sample frequency of gyro module is 20Hz~50Hz.
Preferably, in step E, pass through formula using three-D displacement data X, Y, Z
Digital section is generated,
Pass through formula using three-dimensional angular velocity data A, B, C
Position portion=1/s in [arctan (A/B)+arctan (A/C)+arctan (B/C)]
Position portion is generated, then selects position portion by generating random number, then digital section is determined by the positioning in position portion,
The number for the digital section selected is a data in lottery number, is then repeated the above process until whole lottery numbers
It is selected.
Preferably, wireless communication module carries out communication transfer using http protocol.
Brought beneficial effect is by adopting the above technical scheme: the present invention, which is realized, carries out random selecting numbers in mobile phone terminal
Function, greatly reduce the operating pressure of server, saved the operation cost of operator, improve user use body
It tests.
Detailed description of the invention
Fig. 1 is hardware schematic in a specific embodiment of the invention.
In figure, 1, input/output module;2, gyro module;3, memory module;4, wireless communication module;5, data processing
Module;6, firewall module;7, secure verification module;8, database module.
Specific embodiment
Referring to attached drawing, a kind of random lottery numerical selection method for mobile terminal, this method uses mobile phone terminal and lottery ticket
Central server carries out communication connection, and mobile phone terminal includes input/output module 1, gyro module 2, memory module 3, channel radio
It interrogates module 4 and data processing module 5, central lottery server includes firewall module 6, secure verification module 7, wireless telecommunications mould
Block 4 and database module 8, comprising the following steps:
A, user is attached by wireless communication module 4 with central lottery server using mobile phone terminal, and inputs use
Name in an account book, password pass through the verifying of secure verification module 7;
B, mobile phone terminal downloads real-time lottery information from central lottery server, and is shown in input/output module 1;
C, user selects lottery ticket type, the quantity to be bought by input/output module 1 according to the lottery information of display;
D, mobile phone terminal is shaken, gyro module 2 stores the three-D displacement data captured and three-dimensional angular velocity data
In memory module 3, three-D displacement data are respectively X, Y, Z, and three-dimensional angular velocity data are respectively A, B, C;
E, according in step C determine lottery ticket type and quantity purchase, data processing module 5 using three-D displacement data X,
Y, Z and three-dimensional angular velocity data are respectively that A, B, C generate lottery number immediately, and will generate as the result is shown in input/output module
On 1;
F, after user's confirmation, data processing module 5 passes lottery information boil down to data packet by wireless communication module 4
It is stored in the defeated database module 8 to central lottery server, central lottery server passes through wireless telecommunications after storing successfully
Module 4 sends acknowledgement information to mobile phone terminal.
It by name in an account book, Cryptographic is dark text transmission, lottery central service with mobile phone terminal it is worth noting that, in step A
The dark text decompiling received is to verify in plain text by device.
It is worth noting that, the sample frequency of gyro module is 35Hz in step D.
It is worth noting that, passing through formula using three-D displacement data X, Y, Z in step E
Digital section is generated,
Pass through formula using three-dimensional angular velocity data A, B, C
Position portion=1/sin [arctan (A/B)+arctan (A/C)+arctan (B/C)]
Position portion is generated, then selects position portion by generating random number, then digital section is determined by the positioning in position portion,
The number for the digital section selected is a data in lottery number, is then repeated the above process until whole lottery numbers
It is selected.
Wherein, the process that random number generates are as follows: two initial values and a prime number are determined first, by two initial values
Oval operation is carried out, operation result is divided by with prime number to rem, and remainder is required random number.
By using the above method, it is possible to reduce the operand of 70% or more server end, simultaneously because in mobile phone terminal
Random selecting numbers are carried out, speed is fast, and user experience is good.
The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention.The technology of the industry
Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the above embodiments and description only describe this
The principle of invention, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these changes
Change and improvement all fall within the protetion scope of the claimed invention.The claimed scope of the invention by appended claims and its
Equivalent thereof.
Claims (4)
1. a kind of random lottery numerical selection method for mobile terminal, this method using mobile phone terminal and central lottery server into
Row communication connection, mobile phone terminal include input/output module (1), gyro module (2), memory module (3), wireless communication module
(4) and data processing module (5), central lottery server include firewall module (6), secure verification module (7), wireless telecommunications
Module (4) and database module (8), it is characterised in that the following steps are included:
A, user is attached by wireless communication module (4) with central lottery server using mobile phone terminal, and inputs user
Name, password pass through the verifying of secure verification module (7);
B, mobile phone terminal downloads real-time lottery information from central lottery server, and is shown on input/output module (1);
C, user selects lottery ticket type, the quantity to be bought by input/output module (1) according to the lottery information of display;
D, mobile phone terminal is shaken, the three-D displacement data captured and three-dimensional angular velocity data are stored in by gyro module (2)
In memory module (3), three-D displacement data are respectively X, Y, Z, and three-dimensional angular velocity data are respectively A, B, C;
E, according in step C determine lottery ticket type and quantity purchase, data processing module (5) using three-D displacement data X, Y,
Z and three-dimensional angular velocity data A, B, C generate lottery number immediately, and will generate as the result is shown on input/output module (1);
Pass through formula using three-D displacement data X, Y, Z
Digital section is generated,
Pass through formula using three-dimensional angular velocity data A, B, C
Position portion=1/sin [arctan (A/B)+arctan (A/C)+arctan (B/C)]
Position portion is generated, then selects position portion by generating random number, then digital section is determined by the positioning in position portion, is selected
The number of digital section out is a data in lottery number, is then repeated the above process until whole lottery number choosings
It is fixed;
F, after user's confirmation, data processing module (5) passes lottery information boil down to data packet by wireless communication module (4)
Storage, central lottery server pass through channel radio after storing successfully in the defeated database module (8) to central lottery server
It interrogates module (4) and sends acknowledgement information to mobile phone terminal.
2. the random lottery numerical selection method according to claim 1 for mobile terminal, it is characterised in that: in step A, use
User name, Cryptographic are dark text transmission by mobile phone terminal, and the dark text decompiling received is in plain text by central lottery server
It is verified.
3. the random lottery numerical selection method according to claim 1 for mobile terminal, it is characterised in that: in step D, top
The sample frequency of spiral shell instrument module (2) is 20Hz~50Hz.
4. the random lottery numerical selection method according to claim 1 for mobile terminal, it is characterised in that: wireless telecommunications mould
Block (4) carries out communication transfer using http protocol.
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 CN103763375A (en) | 2014-04-30 |
CN103763375B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Citations (3)
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 |
-
2014
- 2014-01-24 CN CN201410033398.9A patent/CN103763375B/en not_active Expired - Fee Related
Patent Citations (3)
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)
Title |
---|
Unpredictable Random Number Generator Based on Mobile Sensors;Alin Suciu等;《2011 IEEE 7th International Conference on Intelligent Computer Communication and Processing》;20111231;正文第445-447页第I-IV节 |
Also Published As
Publication number | Publication date |
---|---|
CN103763375A (en) | 2014-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104599121B (en) | Information transmission method, device and system | |
CN105992306B (en) | Binding method of terminal and home gateway | |
CN102194178A (en) | Payment processing system, method and device | |
CN105279684A (en) | System and method for safely transferring electronic ticket through near field communication technology | |
KR20160096202A (en) | Network payment method, apparatus and system | |
CN103703741B (en) | application program distribution method, terminal and server | |
WO2011065974A1 (en) | Secure mobile payment processing | |
WO2010129357A3 (en) | Verification of portable consumer devices | |
CN105474574A (en) | Systems and methods for authentication using a device identifier | |
EP2712220A1 (en) | Telecom smart card, air writing card system and air writing card method | |
CN105373870A (en) | Power check mobile application system for power marketing and working method thereof | |
CN104616142B (en) | Data transfer method, server, mobile terminal and system | |
CN103488922A (en) | Method and equipment for providing verification code | |
CN102610022A (en) | Method for verifying authenticity of invoice invoiced from network | |
CN103873455A (en) | Method and device for information check | |
CN103763375B (en) | A kind of random lottery numerical selection method for mobile terminal | |
CN105093982A (en) | Method and server associating sweeping robot with terminal, and system | |
WO2015189257A1 (en) | Communication of reward data between applications | |
CN105243541A (en) | BLE Bluetooth and sound wave combined mobile payment method and system | |
CN103987040A (en) | Bluetooth-assisting online connection establishment method and wireless access point device | |
CN108306970A (en) | A kind of download of firmware safety and calibration equipment and method based on safety chip | |
CN102811203A (en) | User identity identification method, system and user terminal in Internet | |
CN107688934A (en) | Integrate deduction method and terminal device | |
US20170195341A1 (en) | Systems and Methods for Data Authentication Via a Stateless Edge Appliance | |
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 |