Lottery procedures, to seek ideas. What to do with it

Source: Internet
Author: User
Lottery procedures, to seek ideas.
To write a winning program for the mobile, the winning level is 1 to 6 different levels, respectively, corresponding prizes
The term is 3 months on condition is 1 to 3 prize in 3 months, the user can only win once 4 to 6 and other prizes may have multiple chances of winning. Ask for ideas?

------Solution--------------------
The idea is to save our multiple mobile numbers and loop through the results.
------Solution--------------------
If the same number can repeat the jackpot, then you should save all participating numbers
Each draw can take random equidistant sampling method to select the winner, direct Rand can also, but inefficient, the food price of the crowd should be huge

If you are on-demand, you do not need to save all of the participating numbers, but rather a small probability of the prize pool processing
For example, there are 10 prizes rand (0, 100000) < 10 can reach one out of 10,000 of the winning rate

For 3 months the user can only win once is very simple, you just keep the winning number 3 months, judge it.

------Solution--------------------
Ajax

Server-side record processing a bit
------Solution--------------------
The probability of winning.
------Solution--------------------
Since you are not sure how many phones come back to attend. Can only be determined in time .... Each prize searches for the time of the last winning. Then the time is not sure .....
------Solution--------------------
First prize only itouch, now every ipad/iphone4s are embarrassed to say lucky draw
------Solution--------------------
Every day... A mobile phone 300 times? You also make a record ah ...

Write the sticker code ..... We can find bugs and move lawsuits ....


discuss

Reference:

The idea is to save our multiple mobile numbers and loop through the results.

Forgot to say that the page has 9 nine Gongge can click up to 300 times a day to see if they win ~

------Solution--------------------
Explore

Every day... A mobile phone 300 times? You also make a record ah ...

Write the sticker code ..... We can find bugs and move lawsuits ....


Reference:

Reference:

The idea is to save our multiple mobile numbers and loop through the results.

Forgot to say that the page has 9 nine Gongge can click up to 300 times a day to see if they win ~

------Solution--------------------
The normal Rand is all right.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.