CN107038788B - A kind of sequences match prize drawing control method and system - Google Patents
A kind of sequences match prize drawing control method and system Download PDFInfo
- Publication number
- CN107038788B CN107038788B CN201710219431.0A CN201710219431A CN107038788B CN 107038788 B CN107038788 B CN 107038788B CN 201710219431 A CN201710219431 A CN 201710219431A CN 107038788 B CN107038788 B CN 107038788B
- Authority
- CN
- China
- Prior art keywords
- prize
- winning
- sequence number
- lottery
- drawn
- 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
Links
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C15/00—Generating random numbers; Lottery apparatus
- G07C15/006—Generating random numbers; Lottery apparatus electronically
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F17/00—Coin-freed apparatus for hiring articles; Coin-freed facilities or services
- G07F17/32—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for games, toys, sports, or amusements
- G07F17/326—Game play aspects of gaming systems
- G07F17/3272—Games involving multiple players
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F17/00—Coin-freed apparatus for hiring articles; Coin-freed facilities or services
- G07F17/32—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for games, toys, sports, or amusements
- G07F17/3286—Type of games
- G07F17/329—Regular and instant lottery, e.g. electronic scratch cards
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
A kind of sequences match prize drawing control method and system disclosed by the invention, include the following steps: initialization award database, the total amount with check mark and every class prize of getting the winning number in a bond for the configuration of every class prize;The inputted prize drawing request of reception, the precedence according to prize drawing request generate prize drawing sequence number by the way of increasing certainly;When the prize drawing sequence number is matched with set prize-winning pairing relationship, and the prize-winning to match is with prize quantity has been drawn a lottery less than total amount in corresponding current class prize of checking the number, a prize information is distributed for the prize drawing sequence number;When the prize drawing sequence number and the prize-winning pairing relationship difference of setting, a non-prize information is distributed for the prize drawing sequence number;Prize information or non-prize information are received, prize drawing is terminated.The above method can be avoided need to get the winning number in a bond number and draw a lottery range very close to or prize drawing range very little when can recycle always acquisition be different from before random number, shorten draw times.
Description
Technical field
The present invention relates to prize drawing technical field more particularly to a kind of sequences match prize drawing control methods and system.
Background technique
With the rapid development of mobile communication technology, prize drawing business in internet is more and more.When realizing prize drawing algorithm, pass
Using according to prize drawing range and the number that need to get the winning number in a bond random device is recycled to obtain random number, each is random in system method
Number is all recorded, and the random number relatively recorded before, it is necessary to could be continued different from the random number obtained before, Zhi Daoxu
The number of prize-winning number is acquired.This method when need to get the winning number in a bond number and prize drawing range very close to or prize drawing range very little when
It waits, the random number obtained before being different from can recycled always, such circulation is possible to take a long time, even without end
Point, this cycle-index can be far longer than the number that need to get the winning number in a bond.
Summary of the invention
It is an object of the present invention to propose that a kind of service logic that sequences match can be got the winning number in a bond abstracts, can support
The sequences match prize drawing control method and system of matching rule in difference prize drawing scene, solve existing sweepstake shortage technology
Ensure the problem of supporting with ability.
To achieve the goals above, the technical scheme adopted by the invention is as follows:
A kind of sequences match prize drawing control method, includes the following steps:
Award database is initialized, configures prize-winning pairing condition for every class prize, the prize-winning pairing condition includes every class
The total amount of the prize-winning pairing relationship of prize and every class prize;
The inputted prize drawing request of reception, the precedence according to prize drawing request generate prize drawing sequence by the way of increasing certainly
Number;
When the prize drawing sequence number is matched with set prize-winning pairing relationship, the prize-winning pairing relationship to match is traversed
When prize quantity of having drawn a lottery in corresponding prize type is less than total amount, select the prize type of best match for the prize drawing sequence
Number distribution one prize information;Prize quantity of having drawn a lottery in the corresponding prize type of the prize-winning pairing relationship to match is equal to total amount
When, a non-prize information is distributed for the prize drawing sequence number;When the prize drawing sequence number and the prize-winning pairing relationship of setting not
Timing distributes a non-prize information for the prize drawing sequence number;
Prize information or non-prize information are received, prize drawing is terminated.
Wherein, a kind of sequences match is drawn a lottery control method, when initializing award database, to the prize into
Row classification comprising following steps:
All prize types in this sweepstake are recorded using the method for rejection;
Each prize is attributed in corresponding type set by all prizes of poll according to prize type identification.
Wherein, a kind of sequences match prize drawing control method, each type prize configure one and get the winning number in a bond with check mark.
Wherein, a kind of sequences match prize drawing control method, each prize configure one and get the winning number in a bond with check mark.
Invention additionally discloses a kind of sequences match prize drawing control systems, comprising:
Prize separation controller configures prize-winning pairing condition for every class prize for initializing award database, it is described in
Prize pairing condition includes total amount of the prize-winning of every class prize with check mark and every class prize;
Prize drawing sequence controller is requested for receiving inputted prize drawing, and the precedence according to prize drawing request is using certainly
The mode of increasing generates prize drawing sequence number;
Prize-winning recipe controller, for traversing when the prize drawing sequence number is matched with set prize-winning pairing relationship
When prize quantity of having drawn a lottery in the corresponding prize type of the prize-winning pairing relationship to match is less than total amount, the prize of best match is selected
Category type is that the prize drawing sequence number distributes a prize information;It has been taken out in the corresponding prize type of the prize-winning pairing relationship to match
When encouraging prize quantity equal to total amount, a non-prize information is distributed for the prize drawing sequence number;When the prize drawing sequence number and setting
Prize-winning pairing relationship mismatch when, be the prize drawing sequence number distribution one non-prize information;
Prize drawing request is initiated in request end;Receive prize information or non-prize information.
Wherein, a kind of sequences match prize drawing control system, the prize separation controller is in initialization prize number
When according to library, classify to the prize comprising:
Statistic unit records all product types in this sweepstake using the method for rejection;
Each prize is attributed in corresponding volume type set by taxon, all prizes of poll according to prize type identification.
Wherein, a kind of sequences match prize drawing control system, the prize separation controller are each type prize
One is configured to get the winning number in a bond with check mark.
Wherein, a kind of sequences match prize drawing control system, the prize separation controller configure for each prize
One is got the winning number in a bond with check mark.
The invention has the benefit that
Prize-winning pairing relationship is configured for every a kind of prize, and the prize drawing request of user request end by the way of increasing certainly using generating pair
The prize drawing sequence number answered is drawn a lottery with the matched mode of prize-winning pairing relationship using prize drawing sequence number, can be arranged according to demand
Total prize-winning number, at the same can be avoided need to get the winning number in a bond number and prize drawing range very close to or prize drawing range very little when can exist always
Circulation obtains the random number before being different from, and shortens the time for obtaining the random number before being different from.It can be according to sweepstake
Demand midway add or reduce prize type and prize quantity, it is convenient to manage at any time.
Detailed description of the invention
Fig. 1 is the flow chart of sequences match of the present invention prize drawing control method.
Specific embodiment
Below with reference to specific embodiment shown in the drawings, the present invention will be described in detail.But these embodiments are simultaneously
The present invention is not limited, structure that those skilled in the art are made according to these embodiments, method or functionally
Transformation is included within the scope of protection of the present invention.
As shown in fig.1, an embodiment of the present invention provides a kind of sequences match prize drawing control method, including walk as follows
It is rapid:
S100: initialization award database configures prize-winning pairing condition for every class prize, and the prize-winning pairing condition includes
The total amount of the prize-winning pairing relationship of every class prize and every class prize;
Specifically, the product of prize drawing is classified, the product that every one kind product is had when being issued according to sweepstake
Type mark sorts out product, and all product types in this sweepstake are recorded using the method for rejection.Poll institute
There is product, product is attributed in the type set of corresponding prize according to product type mark, similar product will be stuffed into a production
In product queue, total amount of the prize-winning of every class prize with check mark and every class prize is set.
S200: the inputted prize drawing request of reception, the precedence according to prize drawing request generate pumping by the way of increasing certainly
Sequence number is encouraged, it is 0 that the initial value of the prize drawing sequence number, which is preferable to provide,;
The sequence currently drawn a lottery in the prize drawing entire sweepstake of Serial No., initial value 0 receive prize drawing request every time
Described value is added 1 afterwards.
S300: it when the prize drawing sequence number is matched with set prize-winning pairing relationship, traverses the prize-winning to match and matches
When to prize quantity of having drawn a lottery in the corresponding prize type of relationship less than total amount, select the prize type of best match for the pumping
It encourages sequence number and distributes a prize information;Prize quantity of having drawn a lottery in the corresponding prize type of the prize-winning pairing relationship to match is equal to
When total amount, a non-prize information is distributed for the prize drawing sequence number;When the prize-winning pairing relationship of the prize drawing sequence number and setting
When mismatch, a non-prize information is distributed for the prize drawing sequence number;
After receiving user's prize drawing request, obtained prize drawing sequence number is added into 1 operation, and pass through current prize drawing sequence
Row number finds out the prize type set that active user's prize drawing sequence number can be drawn, is limited and advised according to prize according to rule of getting the winning number in a bond
Then, the number of the prize-winning of prize type set prize-winning product corresponding to the user is traversed, the prize-winning to match is with corresponding work as of checking the number
When prize quantity of having drawn a lottery in preceding class prize is less than total amount, a prize information is distributed for the prize drawing sequence number.
Such as: the prize-winning pairing relationship of A class prize is set as the number comprising two or more 9, if user draws a lottery in sequence number
Include the preferential middle A class prize of two or more 9;B class prize prize-winning pairing relationship is comprising more than one 9 number, and C class prize is set as
It guarantees the minimum prize, or does not set prize of guaranteeing the minimum.Preferably, setting all kind prizes can only be got the winning number in a bond once by the same user
First enter prize drawing user draw a lottery Serial No. 1, the number is unrelated with 9, thus distribution one non-prize information or
Distributing its prize-winning type is C class prize;User's prize drawing Serial No. 2 of second user, the number is equally unrelated with 9, middle C class prize
The 9th user of product ... is 9, comprising one 9 number, user's prize drawing Serial No. of the 99th user of middle B class prize ...
99, comprising two 9 numbers, the prize drawing sequence number of the 199th user of middle A class prize ... and the 99th user equally include two
Above 9 number selects the prize type of best match for A class prize, when A class prize is without residue, then starts to retrieve B class prize
Whether residue is had, if B class prize has residue, the 999th user of middle B class prize ... includes two 9 numbers, since A class is encouraged
Product have exhausted, and start the volume residual for retrieving B class prize, if there are also remaining, in B class prize, otherwise in C class prize.
S400: receiving prize information or non-prize information, terminates prize drawing.
A kind of sequences match prize drawing control method, in the step s 100 when initializing award database, to institute
It states prize to classify comprising following steps:
All prize types in this sweepstake are recorded using the method for rejection;
Each prize is attributed in corresponding type set by all prizes of poll according to prize type identification.
The one of the above method improves in embodiment, and each type prize configures one and gets the winning number in a bond with check mark.Such as set the prize of A class
The prize-winning of product is the number comprising two or more 9 with checking the number, and includes the preferential middle A class prize of two or more 9 in sequence number if user draws a lottery
Product;It is to include more than one 9 number that B class prize, which is got the winning number in a bond with checking the number,.
The one of the above method improves in embodiment, and each prize configures one and gets the winning number in a bond with check mark.As set A1 prize
Get the winning number in a bond with check the number be 9999, A2 prize prize-winning with check the number be 9998, A3 prize prize-winning match check mark be 9997 ... B1 prize
Prize-winning with check the number be 888, B2 prize prize-winning with check the number be 887, B3 prize prize-winning match check mark be 886 ...
Invention additionally discloses a kind of sequences match prize drawing control system, the system is based on a kind of prize drawing control of sequences match
Method, sequences match prize drawing control method in all processes, method can be applied in this system, the system comprises:
Prize separation controller configures prize-winning pairing condition for every class prize for initializing award database, it is described in
Prize pairing condition includes total amount of the prize-winning of every class prize with check mark and every class prize;
Prize drawing sequence controller is requested for receiving inputted prize drawing, and the precedence according to prize drawing request is using certainly
The mode of increasing generates prize drawing sequence number;
Prize-winning recipe controller, for traversing when the prize drawing sequence number is matched with set prize-winning pairing relationship
When prize quantity of having drawn a lottery in the corresponding prize type of the prize-winning pairing relationship to match is less than total amount, the prize of best match is selected
Category type is that the prize drawing sequence number distributes a prize information;It has been taken out in the corresponding prize type of the prize-winning pairing relationship to match
When encouraging prize quantity equal to total amount, a non-prize information is distributed for the prize drawing sequence number;When the prize drawing sequence number and setting
Prize-winning pairing relationship mismatch when, be the prize drawing sequence number distribution one non-prize information;
Prize drawing request is initiated in request end;Receive prize information or non-prize information.
Wherein, the prize separation controller classifies to the prize when initializing award database, packet
It includes:
Statistic unit records all prize types in this sweepstake using the method for rejection;
Each prize is attributed in corresponding type set by taxon, all prizes of poll according to prize type identification.
Wherein, the prize separation controller configures one for each type prize and gets the winning number in a bond with check mark.
Wherein, the prize separation controller configures one for each prize and gets the winning number in a bond with check mark.
It should be appreciated that although this specification is described in terms of embodiments, but not each embodiment only includes one
A independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should will say
As a whole, the technical solution in each embodiment may also be suitably combined to form those skilled in the art can for bright book
With the other embodiments of understanding.
The series of detailed descriptions listed above only for feasible embodiment of the invention specifically
Protection scope bright, that they are not intended to limit the invention, it is all without departing from equivalent implementations made by technical spirit of the present invention
Or change should all be included in the protection scope of the present invention.
Claims (8)
- The control method 1. a kind of sequences match is drawn a lottery, it is characterised in that include the following steps:Award database is initialized, configures prize-winning pairing condition for every class prize, the prize-winning pairing condition includes every class prize Prize-winning pairing relationship and every class prize total amount;The inputted prize drawing request of reception, the precedence according to prize drawing request generate prize drawing sequence number by the way of increasing certainly;When the prize drawing sequence number is matched with set prize-winning pairing relationship, it is corresponding to traverse the prize-winning pairing relationship to match Prize type in when having drawn a lottery prize quantity less than total amount, selecting the prize type of best match is that the prize drawing sequence number divides With a prize information;When prize quantity of having drawn a lottery in the corresponding prize type of the prize-winning pairing relationship to match is equal to total amount, it is The prize drawing sequence number distributes a non-prize information;When the prize-winning pairing relationship of the prize drawing sequence number and setting mismatches, A non-prize information is distributed for the prize drawing sequence number;Prize information or non-prize information are received, prize drawing is terminated.
- The control method 2. a kind of sequences match according to claim 1 is drawn a lottery, it is characterised in that:When initializing award database, classify to the prize comprising following steps:All prize types in this sweepstake are recorded using the method for rejection;Each prize is attributed in corresponding type set by all prizes of poll according to prize type identification.
- The control method 3. a kind of sequences match according to claim 1 or 2 is drawn a lottery, it is characterised in that: each type prize One is configured to get the winning number in a bond with check mark.
- The control method 4. a kind of sequences match according to claim 1 or 2 is drawn a lottery, it is characterised in that: each prize configuration One is got the winning number in a bond with check mark.
- The control system 5. a kind of sequences match is drawn a lottery, characterized by comprising:Prize separation controller configures prize-winning pairing condition for initializing award database for every class prize, the prize-winning is matched It include the prize-winning pairing relationship of every class prize and the total amount of every class prize to condition;Prize drawing sequence controller is requested for receiving inputted prize drawing, and the precedence of foundation prize drawing request is using increasing certainly Mode generates prize drawing sequence number;Prize-winning recipe controller is traversed and is matched when the prize drawing sequence number is matched with set prize-winning pairing relationship Prize quantity of having drawn a lottery in the corresponding prize type of prize-winning pairing relationship be less than total amount when, select the prize type of best match for The prize drawing sequence number distributes a prize information;It has drawn a lottery in the corresponding prize type of the prize-winning pairing relationship to match prize number When amount is equal to total amount, a non-prize information is distributed for the prize drawing sequence number;When the prize-winning of the prize drawing sequence number and setting is matched When mismatching to relationship, a non-prize information is distributed for the prize drawing sequence number;Prize drawing request is initiated in request end;Receive prize information or non-prize information.
- The control system 6. a kind of sequences match according to claim 5 is drawn a lottery, it is characterised in that:The prize separation controller classifies to the prize when initializing award database comprising:Statistic unit records all prize types in this sweepstake using the method for rejection;Each prize is attributed in corresponding type set by taxon, all prizes of poll according to prize type identification.
- The control system 7. a kind of sequences match according to claim 5 or 6 is drawn a lottery, it is characterised in that: the prize classification Controller configures one for each type prize and gets the winning number in a bond with check mark.
- The control system 8. a kind of sequences match according to claim 5 or 6 is drawn a lottery, it is characterised in that: the prize classification Controller configures one for each prize and gets the winning number in a bond with check mark.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710219431.0A CN107038788B (en) | 2017-04-06 | 2017-04-06 | A kind of sequences match prize drawing control method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710219431.0A CN107038788B (en) | 2017-04-06 | 2017-04-06 | A kind of sequences match prize drawing control method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107038788A CN107038788A (en) | 2017-08-11 |
CN107038788B true CN107038788B (en) | 2019-05-14 |
Family
ID=59533389
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710219431.0A Active CN107038788B (en) | 2017-04-06 | 2017-04-06 | A kind of sequences match prize drawing control method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107038788B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108492437B (en) * | 2018-03-14 | 2020-07-10 | 武汉斗鱼网络科技有限公司 | Lottery drawing data processing method and device |
CN108985251B (en) * | 2018-07-27 | 2023-04-18 | 平安科技(深圳)有限公司 | User instruction matching method and device, computer equipment and storage medium |
CN109242561B (en) * | 2018-08-31 | 2021-05-18 | 阿里巴巴(中国)有限公司 | Lottery model construction method, lottery activity management method, device and computing equipment |
CN110969753A (en) * | 2018-09-30 | 2020-04-07 | 北京国双科技有限公司 | Lottery drawing control method and device |
CN110163674A (en) * | 2019-05-16 | 2019-08-23 | 闻兰夺 | A kind of instant lottery method based on twelve earthly branches |
CN110458996A (en) * | 2019-07-05 | 2019-11-15 | 平安国际智慧城市科技股份有限公司 | Probability method of adjustment, device, equipment and storage medium based on social platform prize drawing |
CN111899410B (en) * | 2020-07-30 | 2021-12-21 | 中体彩科技发展有限公司 | Lottery game lottery-counting method and system |
CN113112304A (en) * | 2021-04-28 | 2021-07-13 | 厦门信息集团大数据运营有限公司 | Intelligent prize distribution method and system |
CN113743993A (en) * | 2021-09-07 | 2021-12-03 | 湖南双菱电子科技有限公司 | Internet online lottery activity control method and system |
CN114996031B (en) * | 2022-08-03 | 2022-12-27 | 飞狐信息技术(天津)有限公司 | Lottery drawing method and related device |
Citations (5)
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 |
CN101320494A (en) * | 2008-04-16 | 2008-12-10 | 龚建良 | Enterprise lucky drawing method |
CN102842164A (en) * | 2012-09-10 | 2012-12-26 | 任建军 | Lucky draw method with prize self-chosen by participant |
CN103854351A (en) * | 2012-11-30 | 2014-06-11 | 环达电脑(上海)有限公司 | Lottery drawing method |
CN105321249A (en) * | 2015-10-14 | 2016-02-10 | 贵阳朗玛信息技术股份有限公司 | Prize drawing method and device |
-
2017
- 2017-04-06 CN CN201710219431.0A patent/CN107038788B/en active Active
Patent Citations (5)
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 |
CN101320494A (en) * | 2008-04-16 | 2008-12-10 | 龚建良 | Enterprise lucky drawing method |
CN102842164A (en) * | 2012-09-10 | 2012-12-26 | 任建军 | Lucky draw method with prize self-chosen by participant |
CN103854351A (en) * | 2012-11-30 | 2014-06-11 | 环达电脑(上海)有限公司 | Lottery drawing method |
CN105321249A (en) * | 2015-10-14 | 2016-02-10 | 贵阳朗玛信息技术股份有限公司 | Prize drawing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107038788A (en) | 2017-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107038788B (en) | A kind of sequences match prize drawing control method and system | |
US20160148459A1 (en) | Online lottery system for varying probability of winning and method therefor | |
CN107333292B (en) | A kind of SIM card state judging method and device | |
CN107292703A (en) | A kind of freight orders method for pushing and system | |
CN107464001A (en) | Confirmation slip distributes processing method and server | |
CN105263128B (en) | A kind of method and apparatus of Batch sending short message | |
CN108173894A (en) | The method, apparatus and server apparatus of server load balancing | |
AU2013217423B2 (en) | Method and system for operating instances of a game | |
CN103713895B (en) | A kind of data transmission method for uplink and device | |
CN108270581B (en) | Shared resource charging processing method and device | |
CN106209953A (en) | The processing method of sequence information, Apparatus and system | |
CN107766393A (en) | Information processing method, client and server based on database | |
CN102915504A (en) | Software release method and device | |
CN106649638A (en) | Big data acquisition method | |
CN102340496B (en) | Digital media controller and method for sharing inter-network media contents by utilizing same | |
CN109657827A (en) | Service reservation method and device based on resource status | |
CN108399460A (en) | Network about vehicle Order splitting processing method and server | |
CN106878936A (en) | The sharing method and device of a kind of shop WiFi network | |
CN108389022A (en) | A kind of food catering system based on big data | |
CN105847508B (en) | A kind of storage method of telephone number, recognition methods and device | |
CN104715131A (en) | Data processing method and device for internet game | |
CN110162957A (en) | Method for authenticating and device, storage medium, the electronic device of smart machine | |
CN107688934A (en) | Integrate deduction method and terminal device | |
KR20140049636A (en) | System and method to provide ordering and billing service | |
CN108241693A (en) | The method and apparatus of synchrodata |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |