CN106934908A - A kind of lottery drawing method and device - Google Patents
A kind of lottery drawing method and device Download PDFInfo
- Publication number
- CN106934908A CN106934908A CN201710161480.3A CN201710161480A CN106934908A CN 106934908 A CN106934908 A CN 106934908A CN 201710161480 A CN201710161480 A CN 201710161480A CN 106934908 A CN106934908 A CN 106934908A
- Authority
- CN
- China
- Prior art keywords
- prize
- class
- winning result
- positive integer
- prizes
- 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.)
- Pending
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0212—Chance discounts or incentives
Abstract
A kind of lottery drawing method and device that the present invention is provided, after the lotto commands for receiving user, are calculated prize-winning result, are result of its prize quantity divided by all prize quantity per the winning probability of class prize.Prize drawing can all be extracted into prize to user every time, and the winning probability of every class prize is controlled by being pre-configured with the quantity of every class prize so that website attracts the concern of user simultaneously, and prize cost is effectively controlled per the winning probability of class prize by control.
Description
Technical field
The present invention relates to internet arena, more specifically to a kind of lottery drawing method and device.
Background technology
At present, how website attracts the notice of user, lifts the vicidity of user, and being one is worth asking for deeply thinking
Topic.A kind of mode therein is to do a little sweepstakes more, in allowing more users to participate in activity.But how prize is carried out
Distribution, allow it is customer satisfaction system simultaneously, also can with effectively control cost be present urgent need to resolve problem.
The content of the invention
In view of this, the present invention proposes a kind of lottery drawing method and device, is intended to realize attracting user, while effectively controlling cost
Purpose.
To achieve these goals, it is proposed that scheme it is as follows:
A kind of lottery drawing method, including:
Receive the lotto commands of user;
Prize-winning result is calculated, the quantity per class prize is its winning probability divided by the quantity of all prizes;
Show the prize-winning result.
Preferably, described to be calculated prize-winning result, the quantity per class prize is got the winning number in a bond divided by the quantity of all prizes for it
Probability, specifically includes:
A first random positive integer in the range of generation first, first scope is closed interval [1, M1], the M1
It is the quantity of all prizes;
Judge the described first random positive integer whether more than first kind prize quantity, if not, it is determined that prize-winning result is
First kind prize, if so, then generation second in the range of a second random positive integer, second scope be closed interval [1,
M2], the M2 is the difference of the quantity that the M1 subtracts the first kind prize;
Judge the described second random positive integer whether more than Equations of The Second Kind prize quantity, if not, it is determined that prize-winning result is
Equations of The Second Kind prize, if so, then generation the 3rd in the range of a 3rd random positive integer, the 3rd scope be closed interval [1,
M3], the M3 is the difference of the quantity that the M2 subtracts the Equations of The Second Kind prize;
Judge the 3rd random positive integer whether more than the 3rd class prize quantity, if not, it is determined that prize-winning result is
3rd class prize, if so, then continue to determine prize-winning result using the above method, until it is determined that prize-winning result is for a certain class prize
Only.
Preferably, described to be calculated prize-winning result, the quantity per class prize is got the winning number in a bond divided by the quantity of all prizes for it
Probability, specifically includes:
A random positive integer in the range of generation first, first scope is closed interval [1, M1], and the M1 is institute
There is the quantity of prize;
Obtain per the corresponding closed interval of class prize, the corresponding closed interval of N class prizes is [QN-1+ 1, QN], the QNIt is
One class prize to N class prizes total quantity, the QN-1It is the total quantity of first kind prize to N-1 class prizes, first kind prize
The corresponding closed interval of product is [1, Q1];
Determine that the corresponding prize classification in closed interval that the random positive integer belongs to is prize-winning result.
Preferably, described to be calculated prize-winning result, the quantity per class prize is got the winning number in a bond divided by the quantity of all prizes for it
Probability, specifically includes:
A random positive integer in the range of generation first, first scope is closed interval [1, M1], and the M1 is institute
There is the quantity of prize;
Obtain per the corresponding accumulated quantity of class prize, the corresponding accumulated quantity of first kind prize is the number of first kind prize
Amount, the corresponding accumulated quantity of N class prizes is total quantity of the first kind prize to N class prizes;
First kind prize to P classes prize correspondence accumulated quantity is compared with the random positive integer according to this, the P
It is prize categorical measure, determines first corresponding prize classification of accumulated quantity more than or equal to the random positive integer to get the winning number in a bond
As a result.
Preferably, it is determined that after prize-winning result, also including:
The corresponding quantity of prize classification of prize-winning is subtracted 1.
One kind prize drawing device, including:
Receiving unit, the lotto commands for receiving user;
It is determined that prize-winning result unit, for being calculated prize-winning result, the number of quantity per class prize divided by all prizes
Measure as its winning probability;
Display unit, for showing the prize-winning result.
Preferably, the determination prize-winning result unit, specifically includes:
First generation unit, for generating a first random positive integer in the range of first, first scope is to close
Interval [1, M1], the M1 is the quantity of all prizes;
First judging unit, for judging whether the described first random positive integer is more than the quantity of first kind prize, if it is not,
The first determining unit is then performed, if so, then performing the second generation unit;
First determining unit, for determining that prize-winning result is first kind prize;
Second generation unit, for generating a second random positive integer in the range of second, second scope
It is closed interval [1, M2] that the M2 is the difference of the quantity that the M1 subtracts the first kind prize;
Second judging unit, for judging whether the described second random positive integer is more than the quantity of Equations of The Second Kind prize, if it is not,
The second determining unit is then performed, if so, then performing the 3rd generation unit;
Second determining unit, for determining that prize-winning result is Equations of The Second Kind prize;
3rd generation unit, for generating a 3rd random positive integer in the range of the 3rd, the 3rd scope
It is closed interval [1, M3] that the M3 is the difference of the quantity that the M2 subtracts the Equations of The Second Kind prize;
3rd judging unit, for judging whether the 3rd random positive integer is more than the quantity of the 3rd class prize, if it is not,
The 3rd determining unit is then performed, if perform determining prize-winning result subelement;
3rd determining unit, for determining that prize-winning result is the 3rd class prize;
The determination prize-winning result subelement, for continuing to determine prize-winning result using the above method, until it is determined that getting the winning number in a bond
Untill result is a certain class prize.
Preferably, the determination prize-winning result unit, specifically includes:
Random number generation unit, for generating a random positive integer in the range of first, first scope is closed zone
Between [1, M1], the M1 is the quantity of all prizes;
Data capture unit, for obtaining the corresponding closed interval of every class prize, the corresponding closed interval of N class prizes is [QN-1
+ 1, QN], the QNIt is the total quantity of first kind prize to N class prizes, the QN-1It is first kind prize to N-1 class prizes
Total quantity, the corresponding closed interval of first kind prize be [1, Q1];
Prize-winning result determining unit, in determining that the corresponding prize classification in closed interval that the random positive integer belongs to is
Prize result.
Preferably, the determination prize-winning result unit, specifically includes:
Random number generation unit, for generating a random positive integer in the range of first, first scope is closed zone
Between [1, M1], the M1 is the quantity of all prizes;
Data capture unit, for obtaining the corresponding accumulated quantity of every class prize, the corresponding accumulated quantity of first kind prize
It is the quantity of first kind prize, the corresponding accumulated quantity of N class prizes is total quantity of the first kind prize to N class prizes;
Prize-winning result determining unit, for according to this by first kind prize to P classes prize correspondence accumulated quantity with it is described with
Machine positive integer is compared, and the P is prize categorical measure, determines first accumulative total more than or equal to the random positive integer
Corresponding prize classification is measured for prize-winning result.
Preferably, described device, also includes:
Prize quantity changes unit, for it is determined that after prize-winning result, subtracting 1 by the corresponding quantity of prize classification of prize-winning.
Compared with prior art, technical scheme has advantages below:
A kind of lottery drawing method and device that above-mentioned technical proposal is provided, after the lotto commands for receiving user, are calculated
Prize-winning result, is result of its prize quantity divided by all prize quantity per the winning probability of class prize.User draws a lottery every time
Prize can be extracted into, and the winning probability of every class prize is controlled by being pre-configured with the quantity of every class prize so that website attracts
The concern of user simultaneously, prize cost is effectively controlled by control per the winning probability of class prize.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of lottery drawing method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of method for being calculated prize-winning result provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the method that another kind provided in an embodiment of the present invention is calculated prize-winning result;
Fig. 4 is the flow chart of the method that another kind provided in an embodiment of the present invention is calculated prize-winning result;
Fig. 5 is a kind of schematic diagram of device of drawing a lottery provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram for determining prize-winning result unit provided in an embodiment of the present invention;
Fig. 7 is another schematic diagram for determining prize-winning result unit provided in an embodiment of the present invention;
Fig. 8 is another schematic diagram for determining prize-winning result unit provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
The present embodiment provides a kind of lottery drawing method, and referring to Fig. 1, the method can include:
Step S11:Receive the lotto commands of user;
The prize drawing page of the user in website clicks on prize drawing button, and Website server receives the lotto commands of user.
Step S12:Prize-winning result is calculated, the quantity per class prize gets the winning number in a bond general divided by the quantity of all prizes for it
Rate;
After the lotto commands for receiving user, prize-winning result is calculated, the winning probability of every kind of prize is its prize
Quantity of the quantity divided by all prizes.For example, website pre-sets pencil, writing brush and the class prize of erasing rubber three, wherein pencil
Quantity is 20, and the quantity of writing brush is 30, and the quantity of erasing rubber is 50, and the winning probability of pencil is 0.2, and the prize-winning of writing brush is general
Rate is 0.3, and the winning probability of erasing rubber is 0.5, and the winning probability sum of pencil, writing brush and erasing rubber is 1, therefore, user is every
The secondary prize drawing in website can be extracted into a prize.
Step S13:Show the prize-winning result.
Website shows the prize-winning result being calculated to user.
The present invention provide a kind of lottery drawing method, Website server receive user lotto commands after, in being calculated
Prize result, is result of its prize quantity divided by all prize quantity per the winning probability of class prize.User every time all can by prize drawing
Prize is extracted into, and the winning probability of every class prize is controlled by being pre-configured with the quantity of every class prize so that website attracts to use
The concern at family simultaneously, prize cost is effectively controlled by control per the winning probability of class prize.
The present embodiment also provides a kind of method for being calculated prize-winning result, and the method is with the quantity of every class prize divided by institute
The quantity for having prize is the winning probability of such prize, and referring to Fig. 2, the method can include:
Step S21:Generation first in the range of a first random positive integer, first scope be closed interval [1,
M1], the M1 is the quantity of all prizes;
Step S22:Judge whether the described first random positive integer is more than the quantity of first kind prize, if it is not, then performing step
Rapid S23, if so, then performing step S24;
Step S23:It is determined that prize-winning result is first kind prize;
Step S24:Generation second in the range of a second random positive integer, second scope be closed interval [1,
M2], the M2 is the difference of the quantity that the M1 subtracts the first kind prize;
By judge generation the first random positive integer whether more than the quantity of first kind prize be determining prize-winning result
No is first kind prize, if not then generating the second random positive integer to determine whether prize-winning result is Equations of The Second Kind prize.By
Repeatedly judge finally to determine that certain class prize is prize-winning result.
Step S25:Judge whether the described second random positive integer is more than the quantity of Equations of The Second Kind prize, if it is not, then performing step
Rapid S26, if so, then performing step S27;
Step S26:It is determined that prize-winning result is Equations of The Second Kind prize;
Step S27:Generate a 3rd random positive integer in the range of the 3rd, the 3rd scope be closed interval [1,
M3], the M3 is the difference of the quantity that the M2 subtracts the Equations of The Second Kind prize;
Step S28:Judge whether the 3rd random positive integer is more than the quantity of the 3rd class prize, if it is not, then performing step
Rapid S29, if so, then performing step S30;
Step S29:It is determined that prize-winning result is the 3rd class prize;
Step S30:Then continue to determine prize-winning result using the above method, until it is determined that prize-winning result is for a certain class prize
Only.
The judgement order of all kinds of prizes such as first kind prize, Equations of The Second Kind prize can preset, it is also possible to according to certain
Rule be dynamically determined.Due to judging during last certain class prize, the scope of the random positive integer of generation is [1, last certain class prize
Product quantity], therefore, if all kinds of prizes before are not prize-winning result, last certain class prize is necessarily got the winning number in a bond result.
When the lotto commands of user are received, every class prize can be ranked up;Per class prize except corresponding one
Outside its own quantity, can also generate one it is corresponding do not extract prize total quantity, do not extract prize total quantity for current prize
With the total quantity of all prizes afterwards.For example, website pre-sets pencil, writing brush and the class prize of erasing rubber three, wherein pencil
Quantity is 20, and the quantity of writing brush is 30, and the quantity of erasing rubber is 50, then can after being ranked up according to the quantity of every class prize
To be, pencil, writing brush, erasing rubber, the corresponding prize total quantity that do not extract of pencil is 100, and writing brush correspondence does not extract prize sum
It is 80 to measure, and the corresponding prize total quantity that do not extract of erasing rubber is 50.
First, it is determined that whether prize-winning result is pencil;
Scope [1,100], one in formation range [1,100] are obtained according to the corresponding prize total quantity that do not extract of pencil
Random positive integer, if the random positive integer of generation is not more than the quantity 20 of pencil, it is determined that prize-winning result is pencil, if generation
Quantity 20 of the random positive integer more than pencil, it is determined that prize-winning result is not that pencil needs subsequently to be judged;
Secondly, judge whether prize-winning result is writing brush;
Scope [1,80] is obtained according to the corresponding prize total quantity that do not extract of writing brush, in formation range [1,80] with
Machine positive integer, if the random positive integer of generation is not more than the quantity 30 of writing brush, it is determined that prize-winning result is writing brush, if generation with
Quantity 30 of the machine positive integer more than writing brush, it is determined that prize-winning result is not that writing brush needs subsequently to be judged;
Again, judge whether prize-winning result is erasing rubber;
Scope [1,50], one in formation range [1,50] are obtained according to the corresponding prize total quantity that do not extract of erasing rubber
Random positive integer, because the quantity of erasing rubber is 50, therefore, the random positive integer of generation is necessarily not more than the quantity of erasing rubber
50, it is determined that prize-winning result is erasing rubber, i.e., last time judges necessarily to can determine that prize-winning result.
Preferably, it is determined that after prize-winning result, also including:The corresponding quantity of prize classification of prize-winning is subtracted 1.For example, in
Prize result is erasing rubber, then the quantity of erasing rubber is revised as 49, and 49/ (20+30+ has been reformed into the prize-winning lid of such erasing rubber
49).Realize to change with the number change of such prize per the winning probability of class prize.
It should be noted that for after avoiding all prizes from exhausting, the situation that user will be unable to be extracted into prize occurs, website clothes
Business device can timing the quantity of every class prize is initialized, such as 12 points of every night, the quantity of every class prize is updated
It is initially set respective numbers;Or, after the quantity of all prizes is less than predetermined threshold value, the quantity of every class prize is updated
It is initially set respective numbers.
The present embodiment provides another method for being calculated prize-winning result, and the method is with the quantity of every class prize divided by institute
The quantity for having prize is the winning probability of such prize, and referring to Fig. 3, the method can include:
Step S31:A random positive integer in the range of generation first, first scope is closed interval [1, M1], institute
State the quantity that M1 is all prizes;
Step S32:Obtain per the corresponding closed interval of class prize, the corresponding closed interval of N class prizes is [QN-1+ 1, QN], institute
State QNIt is the total quantity of first kind prize to N class prizes, the QN-1It is the total quantity of first kind prize to N-1 class prizes,
The corresponding closed interval of first kind prize is [1, Q1];
Step S33:Determine that the corresponding prize classification in closed interval that the random positive integer belongs to is prize-winning result.
After pre-setting prize classification, and the corresponding quantity of all kinds of prizes, generation is per the corresponding closed interval of class prize.The
The judgement order of all kinds of prizes such as one class prize, Equations of The Second Kind prize can preset, it is also possible to according to certain rule dynamic
It is determined that.For example, website pre-sets pencil, writing brush and the class prize of erasing rubber three, the wherein quantity of pencil is 20, the quantity of writing brush
It it is 30, the quantity of erasing rubber is 50, then can be, pencil, writing brush, rubber after being ranked up according to the quantity of every class prize
Wipe, then the corresponding closed interval of pencil is that [1,20], the corresponding closed interval of writing brush are that [21,50], the corresponding closed interval of erasing rubber are
[51,100].If the random positive integer of generation is in scope [1,20], it is determined that prize-winning result is pencil;If generation it is random just
Integer is in scope [21,50], it is determined that prize-winning result is writing brush;If the random positive integer of generation is in scope [51,100],
Then determine that prize-winning result is erasing rubber.
The present embodiment provides another method for being calculated prize-winning result, and the method is with the quantity of every class prize divided by institute
The quantity for having prize is the winning probability of such prize, and referring to Fig. 4, the method can include:
Step S41:A random positive integer in the range of generation first, first scope is closed interval [1, M1], institute
State the quantity that M1 is all prizes;
Step S42:Obtain per the corresponding accumulated quantity of class prize, the corresponding accumulated quantity of first kind prize is encouraged for the first kind
The quantity of product, the corresponding accumulated quantity of N class prizes is total quantity of the first kind prize to N class prizes;
Step S43:First kind prize to P classes prize correspondence accumulated quantity is compared with the random positive integer according to this
Compared with the P is prize categorical measure, determines first corresponding prize class of accumulated quantity more than or equal to the random positive integer
Wei not prize-winning result.
After pre-setting prize classification, and the corresponding quantity of all kinds of prizes, generation is per the corresponding accumulated quantity of class prize.
The judgement order of all kinds of prizes such as first kind prize, Equations of The Second Kind prize can preset, it is also possible to dynamic according to certain rule
State determines.For example, website pre-sets pencil, writing brush and the class prize of erasing rubber three, the wherein quantity of pencil is 20, the number of writing brush
It is 30 to measure, and the quantity of erasing rubber is 50, then can be after being ranked up according to the quantity of every class prize, pencil, writing brush, rubber
Skin is wiped, then the corresponding accumulated quantity of pencil is that 20, the corresponding accumulated quantity of writing brush is that 50, the corresponding accumulated quantity of erasing rubber is
100.20,50,100 are compared with the random positive integer of generation according to this, if 20 more than or equal to the random positive integer for generating, 20
It is first accumulated quantity more than or equal to random positive integer, determines that pencil is prize-winning result;If 20 are not more than random integers,
Judge 50 whether more than or equal to generation random positive integers, if so, 50 being then first more than or equal to random positive integer
Accumulated quantity, determines writing brush for prize-winning result, if it is not, then judge the 100 random positive integers for whether being more than or equal to generation, due to
The span of the random positive integer of generation is [1,100], therefore 100 certain random positive integers more than or equal to generation, i.e.,
Determine that erasing rubber is prize-winning result.
For foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but
It is that those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to the present invention, certain
A little steps can sequentially or simultaneously be carried out using other.
Following is apparatus of the present invention embodiment, can be used for performing the inventive method embodiment.For apparatus of the present invention reality
The details not disclosed in example is applied, the inventive method embodiment is refer to.
The present embodiment provides a kind of prize drawing device, and shown in Figure 5, the device includes:
Receiving unit 11, the lotto commands for receiving user;
It is determined that prize-winning result unit 12, for being calculated prize-winning result, per the quantity of class prize divided by all prizes
Quantity is its winning probability;
Display unit 13, for showing the prize-winning result.
A kind of prize drawing device that the present invention is provided, receiving unit 11 receives the lotto commands of user, it is determined that prize-winning result list
Unit 12 is calculated prize-winning result, is result of its prize quantity divided by all prize quantity per the winning probability of class prize.With
Prize drawing can all be extracted into prize every time at family, and the winning probability of every class prize is controlled by being pre-configured with the quantity of every class prize,
So that website attracts the concern of user simultaneously, prize cost is effectively controlled per the winning probability of class prize by control.
The present embodiment provides a kind of determination prize-winning result unit, and shown in Figure 6, the unit can include:
First generation unit 21, for generating a first random positive integer in the range of first, first scope is
Closed interval [1, M1], the M1 is the quantity of all prizes;
First judging unit 22, for judging whether the described first random positive integer is more than the quantity of first kind prize, if
It is no, then the first determining unit 23 is performed, if so, then performing the second generation unit 24;
First determining unit 23, for determining that prize-winning result is first kind prize;
Second generation unit 24, for generating a second random positive integer in the range of second, second model
It is closed interval [1, M2] to enclose, and the M2 is the difference of the quantity that the M1 subtracts the first kind prize;
Second judging unit 25, for judging whether the described second random positive integer is more than the quantity of Equations of The Second Kind prize, if
It is no, then the second determining unit 26 is performed, if so, then performing the 3rd generation unit 27;
Second determining unit 26, for determining that prize-winning result is Equations of The Second Kind prize;
3rd generation unit 27, for generating a 3rd random positive integer in the range of the 3rd, the 3rd model
It is closed interval [1, M3] to enclose, and the M3 is the difference of the quantity that the M2 subtracts the Equations of The Second Kind prize;
3rd judging unit 28, for judging whether the 3rd random positive integer is more than the quantity of the 3rd class prize, if
It is no, then the 3rd determining unit 29 is performed, if perform determining prize-winning result subelement 30;
3rd determining unit 29, for determining that prize-winning result is the 3rd class prize;
The determination prize-winning result subelement 30, for continuing to determine prize-winning result using the above method, until it is determined that in
Untill prize result is a certain class prize.
The present embodiment provides another determination prize-winning result unit, and shown in Figure 7, the unit can include:
Random number generation unit 31, for generating a random positive integer in the range of first, first scope is to close
Interval [1, M1], the M1 is the quantity of all prizes;
Data capture unit 32, for obtaining the corresponding closed interval of every class prize, the corresponding closed interval of N class prizes is
[QN-1+ 1, QN], the QNIt is the total quantity of first kind prize to N class prizes, the QN-1It is first kind prize to N-1 classes
The total quantity of prize, the corresponding closed interval of first kind prize is [1, Q1];
Prize-winning result determining unit 33, for determining that the corresponding prize classification in closed interval that the random positive integer belongs to is
Prize-winning result.
The present embodiment provides another determination prize-winning result unit, and shown in Figure 8, the unit can include:
Random number generation unit 41, for generating a random positive integer in the range of first, first scope is to close
Interval [1, M1], the M1 is the quantity of all prizes;
Data capture unit 42, for obtaining the corresponding accumulated quantity of every class prize, the corresponding accumulative total of first kind prize
It is the quantity of first kind prize to measure, and the corresponding accumulated quantity of N class prizes is total quantity of the first kind prize to N class prizes;
Prize-winning result determining unit 43, for according to this by first kind prize to P classes prize correspondence accumulated quantity with it is described
Random positive integer is compared, and the P is prize categorical measure, determines first adding up more than or equal to the random positive integer
The corresponding prize classification of quantity is prize-winning result.
Preferred said apparatus, can also include:Prize quantity changes unit, for it is determined that after prize-winning result, will in
The corresponding quantity of prize classification of prize subtracts 1
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can
To be or may not be physically separate, the part shown as unit can be or may not be physics list
Unit, you can with positioned at a place, or can also be distributed on multiple NEs.It can according to the actual needs be selected
In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness
In the case of work, you can to understand and implement.
Herein, such as first and second or the like relational terms be used merely to by an entity or operation with it is another
One entity or operation make a distinction, and not necessarily require or imply these entities or there is any this reality between operating
Relation or order.And, term " including ", "comprising" or its any other variant be intended to the bag of nonexcludability
Contain, so that process, method, article or equipment including a series of key elements are not only including those key elements, but also including
Other key elements being not expressly set out, or it is this process, method, article or the intrinsic key element of equipment also to include.
In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element
Process, method, article or equipment in also there is other identical element.
Each embodiment is described by the way of progressive in this specification, and what each embodiment was stressed is and other
The difference of embodiment, between each embodiment identical similar portion mutually referring to.
To the described above of disclosed embodiment of this invention, professional and technical personnel in the field is realized or use this
Invention.Various modifications to these embodiments will be apparent for those skilled in the art, institute herein
The General Principle of definition can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore,
The present invention is not intended to be limited to the embodiments shown herein, and is to fit to special with principles disclosed herein and novelty
The consistent scope most wide of point.
Claims (10)
1. a kind of lottery drawing method, it is characterised in that including:
Receive the lotto commands of user;
Prize-winning result is calculated, the quantity per class prize is its winning probability divided by the quantity of all prizes;
Show the prize-winning result.
2. method according to claim 1, it is characterised in that described to be calculated prize-winning result, per the quantity of class prize
Quantity divided by all prizes is its winning probability, is specifically included:
A first random positive integer in the range of generation first, first scope is closed interval [1, M1], and the M1 is institute
There is the quantity of prize;
Judge whether the described first random positive integer is more than the quantity of first kind prize, if not, it is determined that prize-winning result is first
Class prize, if so, a then second random positive integer in the range of generation second, second scope is closed interval [1, M2],
The M2 is the difference of the quantity that the M1 subtracts the first kind prize;
Judge whether the described second random positive integer is more than the quantity of Equations of The Second Kind prize, if not, it is determined that prize-winning result is second
Class prize, if so, then a 3rd random positive integer in the range of generation the 3rd, the 3rd scope is closed interval [1, M3],
The M3 is the difference of the quantity that the M2 subtracts the Equations of The Second Kind prize;
Judge whether the 3rd random positive integer is more than the quantity of the 3rd class prize, if not, it is determined that prize-winning result is the 3rd
Class prize, if so, then continue to determine prize-winning result using the above method, untill it is determined that prize-winning result is a certain class prize.
3. method according to claim 1, it is characterised in that described to be calculated prize-winning result, per the quantity of class prize
Quantity divided by all prizes is its winning probability, is specifically included:
Generation first in the range of a random positive integer, first scope be closed interval [1, M1], the M1 for lottery
The quantity of product;
Obtain per the corresponding closed interval of class prize, the corresponding closed interval of N class prizes is [QN-1+ 1, QN], the QNIt is the first kind
Prize to N class prizes total quantity, the QN-1It is the total quantity of first kind prize to N-1 class prizes, first kind prize pair
The closed interval answered is [1, Q1];
Determine that the corresponding prize classification in closed interval that the random positive integer belongs to is prize-winning result.
4. method according to claim 1, it is characterised in that described to be calculated prize-winning result, per the quantity of class prize
Quantity divided by all prizes is its winning probability, is specifically included:
Generation first in the range of a random positive integer, first scope be closed interval [1, M1], the M1 for lottery
The quantity of product;
Obtain per the corresponding accumulated quantity of class prize, the corresponding accumulated quantity of first kind prize is the quantity of first kind prize, N
The corresponding accumulated quantity of class prize is total quantity of the first kind prize to N class prizes;
First kind prize to P classes prize correspondence accumulated quantity is compared with the random positive integer according to this, the P is prize
Product categorical measure, determines first corresponding prize classification of accumulated quantity more than or equal to the random positive integer and is tied to get the winning number in a bond
Really.
5. the method according to Claims 1 to 4 any one, it is characterised in that it is determined that after prize-winning result, also including:
The corresponding quantity of prize classification of prize-winning is subtracted 1.
6. a kind of prize drawing device, it is characterised in that including:
Receiving unit, the lotto commands for receiving user;
It is determined that prize-winning result unit, for being calculated prize-winning result, the quantity per class prize is divided by the quantity of all prizes
Its winning probability;
Display unit, for showing the prize-winning result.
7. device according to claim 6, it is characterised in that the determination prize-winning result unit, specifically includes:
First generation unit, for generating a first random positive integer in the range of first, first scope is closed interval
[1, M1], the M1 is the quantity of all prizes;
First judging unit, for judging whether the described first random positive integer is more than the quantity of first kind prize, if it is not, then holding
The determining unit of row first, if so, then performing the second generation unit;
First determining unit, for determining that prize-winning result is first kind prize;
Second generation unit, for generating a second random positive integer in the range of second, second scope is to close
Interval [1, M2], the M2 is the difference of the quantity that the M1 subtracts the first kind prize;
Second judging unit, for judging whether the described second random positive integer is more than the quantity of Equations of The Second Kind prize, if it is not, then holding
The determining unit of row second, if so, then performing the 3rd generation unit;
Second determining unit, for determining that prize-winning result is Equations of The Second Kind prize;
3rd generation unit, for generating a 3rd random positive integer in the range of the 3rd, the 3rd scope is to close
Interval [1, M3], the M3 is the difference of the quantity that the M2 subtracts the Equations of The Second Kind prize;
3rd judging unit, for judging whether the 3rd random positive integer is more than the quantity of the 3rd class prize, if it is not, then holding
The determining unit of row the 3rd, if perform determining prize-winning result subelement;
3rd determining unit, for determining that prize-winning result is the 3rd class prize;
The determination prize-winning result subelement, for continuing to determine prize-winning result using the above method, until it is determined that prize-winning result
Untill a certain class prize.
8. device according to claim 6, it is characterised in that the determination prize-winning result unit, specifically includes:
Random number generation unit, for generate first in the range of a random positive integer, first scope for closed interval [1,
M1], the M1 is the quantity of all prizes;
Data capture unit, for obtaining the corresponding closed interval of every class prize, the corresponding closed interval of N class prizes is [QN-1+ 1,
QN], the QNIt is the total quantity of first kind prize to N class prizes, the QN-1It is total for first kind prize to N-1 class prizes
Quantity, the corresponding closed interval of first kind prize is [1, Q1];
Prize-winning result determining unit, for determining that the corresponding prize classification in closed interval that the random positive integer belongs to is tied to get the winning number in a bond
Really.
9. device according to claim 6, it is characterised in that the determination prize-winning result unit, specifically includes:
Random number generation unit, for generate first in the range of a random positive integer, first scope for closed interval [1,
M1], the M1 is the quantity of all prizes;
Data capture unit, for obtaining the corresponding accumulated quantity of every class prize, the corresponding accumulated quantity of first kind prize is the
The quantity of one class prize, the corresponding accumulated quantity of N class prizes is total quantity of the first kind prize to N class prizes;
Prize-winning result determining unit, for according to this by first kind prize to P classes prize correspondence accumulated quantity with it is described it is random just
Integer is compared, and the P is prize categorical measure, determines first accumulated quantity pair more than or equal to the random positive integer
The prize classification answered is prize-winning result.
10. the device according to claim 6~9 any one, it is characterised in that described device, also includes:
Prize quantity changes unit, for it is determined that after prize-winning result, subtracting 1 by the corresponding quantity of prize classification of prize-winning.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710161480.3A CN106934908A (en) | 2017-03-17 | 2017-03-17 | A kind of lottery drawing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710161480.3A CN106934908A (en) | 2017-03-17 | 2017-03-17 | A kind of lottery drawing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106934908A true CN106934908A (en) | 2017-07-07 |
Family
ID=59432565
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710161480.3A Pending CN106934908A (en) | 2017-03-17 | 2017-03-17 | A kind of lottery drawing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106934908A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108269099A (en) * | 2018-02-05 | 2018-07-10 | 桂林金发明科技开发有限公司 | A kind of lottery drawing method of decentralization |
CN108492437A (en) * | 2018-03-14 | 2018-09-04 | 武汉斗鱼网络科技有限公司 | Data processing method of drawing a lottery and device |
CN109003120A (en) * | 2018-06-27 | 2018-12-14 | 厦门天脑网络科技有限公司 | A kind of lottery drawing method and system |
CN109542395A (en) * | 2018-11-23 | 2019-03-29 | 苏州好玩友网络科技有限公司 | Lottery information determines method, apparatus, equipment and storage medium |
CN109960487A (en) * | 2017-12-14 | 2019-07-02 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus of extracting object |
CN110796778A (en) * | 2018-08-01 | 2020-02-14 | 广州市森锐科技股份有限公司 | Lottery drawing method, device, terminal and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005006263A1 (en) * | 2003-07-10 | 2005-01-20 | Betware A Islandi Hf. | Management of a secure on-line instant ticket lottery |
CN103019649A (en) * | 2012-11-29 | 2013-04-03 | 北京奇虎科技有限公司 | Information providing method and device |
CN103942871A (en) * | 2014-04-22 | 2014-07-23 | 沈阳昊英特信息技术有限公司 | Online game reward implementation method based on mobile terminal, server and system |
CN104715390A (en) * | 2013-12-16 | 2015-06-17 | 腾讯科技(深圳)有限公司 | Data processing method and device for network application |
CN105321249A (en) * | 2015-10-14 | 2016-02-10 | 贵阳朗玛信息技术股份有限公司 | Prize drawing method and device |
CN106157071A (en) * | 2015-03-27 | 2016-11-23 | 天脉聚源(北京)科技有限公司 | A kind of method and system of public's account prize drawing |
-
2017
- 2017-03-17 CN CN201710161480.3A patent/CN106934908A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005006263A1 (en) * | 2003-07-10 | 2005-01-20 | Betware A Islandi Hf. | Management of a secure on-line instant ticket lottery |
CN103019649A (en) * | 2012-11-29 | 2013-04-03 | 北京奇虎科技有限公司 | Information providing method and device |
CN104715390A (en) * | 2013-12-16 | 2015-06-17 | 腾讯科技(深圳)有限公司 | Data processing method and device for network application |
CN103942871A (en) * | 2014-04-22 | 2014-07-23 | 沈阳昊英特信息技术有限公司 | Online game reward implementation method based on mobile terminal, server and system |
CN106157071A (en) * | 2015-03-27 | 2016-11-23 | 天脉聚源(北京)科技有限公司 | A kind of method and system of public's account prize drawing |
CN105321249A (en) * | 2015-10-14 | 2016-02-10 | 贵阳朗玛信息技术股份有限公司 | Prize drawing method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109960487A (en) * | 2017-12-14 | 2019-07-02 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus of extracting object |
CN108269099A (en) * | 2018-02-05 | 2018-07-10 | 桂林金发明科技开发有限公司 | A kind of lottery drawing method of decentralization |
CN108492437A (en) * | 2018-03-14 | 2018-09-04 | 武汉斗鱼网络科技有限公司 | Data processing method of drawing a lottery and device |
CN109003120A (en) * | 2018-06-27 | 2018-12-14 | 厦门天脑网络科技有限公司 | A kind of lottery drawing method and system |
CN110796778A (en) * | 2018-08-01 | 2020-02-14 | 广州市森锐科技股份有限公司 | Lottery drawing method, device, terminal and computer readable storage medium |
CN109542395A (en) * | 2018-11-23 | 2019-03-29 | 苏州好玩友网络科技有限公司 | Lottery information determines method, apparatus, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106934908A (en) | A kind of lottery drawing method and device | |
Wells et al. | Distorted retrospective eyewitness reports as functions of feedback and delay. | |
CN107483500A (en) | A kind of Risk Identification Method based on user behavior, device and storage medium | |
US20020059099A1 (en) | Method and apparatus for collecting on-line consumer data and streaming advertisements in response to sweepstakes participation | |
GB2406697A (en) | Gaming device having a first and second game | |
EP1176561A3 (en) | Method and apparatus for generating numbers to play in a lottery | |
IL170642A (en) | System and method for providing an interactive screen on a wireless device interacting with a server | |
WO2002054331A3 (en) | Gaming method and apparatus with triggering of bonus events by the presence of a trigger symbol in particular locations | |
CN105872247A (en) | Application anti-addiction method and device as well as mobile terminal | |
CN106953832A (en) | Handle the method and system of the suspicious account of network game | |
CN106550044A (en) | Using method for down loading, download server, download client and apply download system | |
CN104156551B (en) | Method and apparatus based on time interval dynamic adjustment target data hit | |
CN105321249A (en) | Prize drawing method and device | |
CN104462564B (en) | The method and apparatus that prompt message is provided | |
CN107563798A (en) | Prize-winning data processing method and device | |
CN108521405A (en) | A kind of risk management and control method, device and storage medium | |
CN107295387A (en) | Barrage display methods and device | |
CN107872534A (en) | Information-pushing method, device, server and readable storage medium storing program for executing | |
CN107391108A (en) | A kind of informing Information revision method and its device, electronic equipment | |
CN105871938A (en) | Virtual resource configuration system, virtual resource configuration method and virtual resource configuration device | |
CN1332342C (en) | System and method for conducting searches on the world wide web | |
CN107452233A (en) | A kind of learning control method and terminal device based on terminal device | |
CN106991581A (en) | Information popularization method and device, server and electronic equipment | |
CN107694098A (en) | A kind of data processing method, device and storage medium | |
CN110263285A (en) | Advertisement placement method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170707 |
|
RJ01 | Rejection of invention patent application after publication |