Bitcoin Forum
May 06, 2024, 08:13:27 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Design a lottery - need suggestions design of the logic of the draws  (Read 842 times)
Onar (OP)
Member
**
Offline Offline

Activity: 172
Merit: 10


View Profile
April 06, 2014, 06:25:05 PM
Last edit: April 06, 2014, 08:08:39 PM by Onar
 #1

I am working on the workflow of a online lottery where  parts of income will build up a fund that will fund bitcoins projects.

The idea is to create in such way:

1. user register wallet ID
2. user picks for example x numbers between 1-x. (lets assume the numbers to choose is 1 -9)
3. The site/software selects the last number randomly and adding it to the numbers user picked in step 2. (safety feature).
4. registration of e-mail (is not stored with the wallet ID)
5. User pays for the tickets choosen with BTC and are participant in the drawing.
6. User receives his selected numbers on e-mail.


THE DRAWING
The site will automaticly draw the winner wallet ID between the participants wallets ID and draw the randomly numbers. If a wallet ID and numbers are matched you have a lucky winner. The script will draw X times regards to pricelist set up.   If a few winners or none There will be a second drawing round but the prizes get smaller, the difference are added to a weekly drawing. This will go on until there is selected a winner regards to the price scheme set up (this can be many ways). prizepayment are done automaticly.

Admin can set opp prices in first round (% of funds from bought tickets), and % of the funds from bought tickets in second round if not selected. If a few or none winners in first round, the rest % is added to the second drawing minus a % that will be sent to a weekly drawing. If no winners in weekly drawing it will go to the next week drawing and so on.

Example:
1. prize 20% of income from sold tickets.
2. 10% of income from sold tickets.
3. 5 % of income from sold tickets.
4 -x prize: 65% of income from tickets are distrubeted in prices of for example 1 BTC (amount set by admin).


There is three calculations regards to income/revenue of sold lottery tickets: % Prize money, % fee that goes to bitcoin fund, and a % fee to run and develope the site further.

Anyone having the guts to try to set up the programming logic for such a automatic drawing? Drop your suggestion here or send a PM

Good luck Smiley and I might use your suggestion in this idealistic bitcoin  lottery that will have the goal to fund small and big bitcoins projects that take this technology further.


1714983207
Hero Member
*
Offline Offline

Posts: 1714983207

View Profile Personal Message (Offline)

Ignore
1714983207
Reply with quote  #2

1714983207
Report to moderator
1714983207
Hero Member
*
Offline Offline

Posts: 1714983207

View Profile Personal Message (Offline)

Ignore
1714983207
Reply with quote  #2

1714983207
Report to moderator
Be very wary of relying on JavaScript for security on crypto sites. The site can change the JavaScript at any time unless you take unusual precautions, and browsers are not generally known for their airtight security.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714983207
Hero Member
*
Offline Offline

Posts: 1714983207

View Profile Personal Message (Offline)

Ignore
1714983207
Reply with quote  #2

1714983207
Report to moderator
1714983207
Hero Member
*
Offline Offline

Posts: 1714983207

View Profile Personal Message (Offline)

Ignore
1714983207
Reply with quote  #2

1714983207
Report to moderator
CoreQ
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
April 22, 2014, 11:47:47 AM
 #2

How's the project going? I would like to know more.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!