Bitcoin Forum

Other => Beginners & Help => Topic started by: Rainbow-queen on August 08, 2021, 05:49:38 PM



Title: Questions about lottery
Post by: Rainbow-queen on August 08, 2021, 05:49:38 PM
I bought two lottery tickets with curiosity today.

The current mainstream lotto-type lottery, that is, a number of numbers are selected from a set of numbers, and the prizes are paid according to the number of selected grades. Lotto-type lottery business also has some problems in the development process, the more typical one is the trust problem.

Because the winning number selection machine is provided by the lottery agency, it is not known whether the machine is really randomly selected; on the other hand, the time and amount of the lottery ticket purchase by the lottery are only known when the lottery ticket is won; the identity of the final winner is also confidential . This opacity leads to society’s distrust of the lottery center. Lottery players have every reason to suspect that the lottery center controls the lottery numbers and winners. This kind of distrust will seriously affect the lottery’s enthusiasm for buying lottery tickets.
In the past, news reports have reported falsifying institutional data and hacking systems to gain profits.

I am thinking that blockchain technology can solve these problems.
The lottery function is mainly to calculate the winning result according to the lottery information and betting information on the chain by calling the smart contract and store it on the chain. Through the openness, independence, security, and non-tamperability of the blockchain, the entire lottery function ensures that the lottery process and winning results are more fair, just, open, and transparent on the chain through smart contracts.
I checked the information online and found that someone had already done a lottery case.lottery case (https://docs.chain.link/docs/chainlink-alarm-clock/
https://github.com/alphachainio/chainlink-lottery/tree/master/ethereum/contracts)
I don't understand the code, and I don't know what loopholes are.

The winning numbers of traditional lottery tickets are generated by lottery machines. Whether it can truly guarantee the randomness has been questioned. If blockchain technology is used to make lottery tickets, can randomness be controlled?

PS: Someone used mathematical methods to calculate for a day and picked a few numbers to win the second prize. I am not good at math, can I really increase my chances of winning through calculations?


Title: Re: Questions about lottery
Post by: bitmover on August 08, 2021, 06:32:01 PM
The winning numbers of traditional lottery tickets are generated by lottery machines. Whether it can truly guarantee the randomness has been questioned. If blockchain technology is used to make lottery tickets, can randomness be controlled?


Yes.

You can make a smartcontract in the blockchain which is open source and auditable.

So, you basically send your loterry bet to a smartcontract with open source code, where anyone can audit the randomness,  and the smartcontract itself would send the prize to the winners.

Quote

PS: Someone used mathematical methods to calculate for a day and picked a few numbers to win the second prize. I am not good at math, can I really increase my chances of winning through calculations?

No. If you can "cheat" the code to increase your chances, it is a bad code with poor randomness


Title: Re: Questions about lottery
Post by: Rainbow-queen on August 09, 2021, 01:35:06 AM
The winning numbers of traditional lottery tickets are generated by lottery machines. Whether it can truly guarantee the randomness has been questioned. If blockchain technology is used to make lottery tickets, can randomness be controlled?


PS: Someone used mathematical methods to calculate for a day and picked a few numbers to win the second prize. I am not good at math, can I really increase my chances of winning through calculations?

No. If you can "cheat" the code to increase your chances, it is a bad code with poor randomness

[/quote]

No, you misunderstood me. What I mean is that without intervention in smart contracts, the chance of winning is increased by mathematical methods.Choose 5 numbers from 1-45.


Title: Re: Questions about lottery
Post by: cryptoaddictchie on August 09, 2021, 01:41:30 AM
PS: Someone used mathematical methods to calculate for a day and picked a few numbers to win the second prize. I am not good at math, can I really increase my chances of winning through calculations?
Thats the thing. Since blockchain is open source and can be seen on chain. No one would try to cheat as thr code could be seen by such developers eye or anyone good with coding. I like blockchain that it can be integrated with such use case like this.

No, you misunderstood me. What I mean is that without intervention in smart contracts, the chance of winning is increased by mathematical methods.Choose 5 numbers from 1-45.
For developer they can set it up like this. But problem is anyone can see if there is a coded part where advantage has been set by the creator.


Title: Re: Questions about lottery
Post by: pooya87 on August 09, 2021, 06:03:54 AM
The winning numbers of traditional lottery tickets are generated by lottery machines. Whether it can truly guarantee the randomness has been questioned. If blockchain technology is used to make lottery tickets, can randomness be controlled?
Not exactly. Using blockchain will only provide transparency while the method that is used will remain the same as if blockchain weren't used and the randomness or better said the provably fair system is only fair if the used method was was fair.

For example the current existing method that gambling sites use for their lottery (usually using HMACSHA512 in combination with user and server seeds) could be translated to a smart contract but that wouldn't provide any additional security or anything like that. It could only automate things and possibly (if done right) make the lottery more decentralized.


Title: Re: Questions about lottery
Post by: Rainbow-queen on August 09, 2021, 06:44:28 AM
The winning numbers of traditional lottery tickets are generated by lottery machines. Whether it can truly guarantee the randomness has been questioned. If blockchain technology is used to make lottery tickets, can randomness be controlled?
Not exactly. Using blockchain will only provide transparency while the method that is used will remain the same as if blockchain weren't used and the randomness or better said the provably fair system is only fair if the used method was was fair.

For example the current existing method that gambling sites use for their lottery (usually using HMACSHA512 in combination with user and server seeds) could be translated to a smart contract but that wouldn't provide any additional security or anything like that. It could only automate things and possibly (if done right) make the lottery more decentralized.
You got the point. If I have merit, I will definitely give it to you. Even if blockchain technology is applied to gambling, the organizer still has the opportunity to fake it, right?


Title: Re: Questions about lottery
Post by: defi-Dany on August 10, 2021, 09:03:25 AM

PS: Someone used mathematical methods to calculate for a day and picked a few numbers to win the second prize. I am not good at math, can I really increase my chances of winning through calculations?

Comprehensive analysis of the lottery ticket purchase program through probability statistics and mathematical modeling related mathematical knowledge can improve the winning rate, but it is too difficult.
Leave it to destiny. good luck.


Title: Re: Questions about lottery
Post by: dansus021 on August 10, 2021, 10:59:17 AM
i know crypto lottery on pancakebunny, pancakeswap and moonpot by beefy you can check them out i tried moonpot its actually win win lottery sytem so you will not lose your money when your not the winner  ;D using chainlink vrf maybe this was fair enough


Title: Re: Questions about lottery
Post by: aoluain on August 10, 2021, 11:44:22 AM
The winning numbers of traditional lottery tickets are generated by lottery machines. Whether it can truly guarantee the randomness has been questioned. If blockchain technology is used to make lottery tickets, can randomness be controlled?
Not exactly. Using blockchain will only provide transparency while the method that is used will remain the same as if blockchain weren't used and the randomness or better said the provably fair system is only fair if the used method was was fair.

For example the current existing method that gambling sites use for their lottery (usually using HMACSHA512 in combination with user and server seeds) could be translated to a smart contract but that wouldn't provide any additional security or anything like that. It could only automate things and possibly (if done right) make the lottery more decentralized.
You got the point. If I have merit, I will definitely give it to you. Even if blockchain technology is applied to gambling, the organizer still has the opportunity to fake it, right?

Absolutely, by being on "the outside" as a player the only mathematical analysis
we can do is based on maybe:

The Law of large numbers
This theorem is a fundamental element of probability theory. The law is basically that if one conducts the same experiment a large number of times the average of the results should be close to the expected value. Furthermore, the more trails conducted the closer the resulting average will be to the expected value

Analysis of lottery numbers
Lottery mathematics is used to calculate probabilities of winning or losing a lottery game. It is based primarily on combinatorics, particularly the twelvefold way and combinations without replacement.

And in the end as its computerised a lottery can be rigged, they draw the numbers
on their system and most often all picks have to be in 10 minutes for example before
the draw. I'm sure a computer can work out what combination of numbers
has NOT been picked if they decide they dont want a winner on that particular draw.


Title: Re: Questions about lottery
Post by: Rainbow-queen on August 13, 2021, 08:00:45 AM
i know crypto lottery on pancakebunny, pancakeswap and moonpot by beefy you can check them out i tried moonpot its actually win win lottery sytem so you will not lose your money when your not the winner  ;D using chainlink vrf maybe this was fair enough

I played a lottery game on pancake, and the last trader was the winner. Without a doubt, I lost again.


Title: Re: Questions about lottery
Post by: hatshepsut93 on August 13, 2021, 10:45:51 PM
Fraud with traditional lotteries is not that common, and despite blockchain-based lotteries better guarantees of fairness, I think it's not the main reason to choose a decentralized lottery. Traditional lotteries have a huge edge over the player while decentralized lotteries have minimal or even zero edge. Just don't think you can make money with a decentralized lottery because of it, because no edge means that over infinitely many rolls you will have no profit and no loss.


Title: Re: Questions about lottery
Post by: pooya87 on August 14, 2021, 03:03:24 AM
Even if blockchain technology is applied to gambling, the organizer still has the opportunity to fake it, right?
That's right. There is always a way to scam people. But in this case it will come down to the smart contract that was used and the platform it was built on top of. Smart contract platforms also have exploits that can lead to funds being stolen.
There is also a problem with the organizer refusing to pay. Since the lottery methods that I've seen rely on the hash of the seed being released (the seed itself is needed to determine the winner) the organizer can refuse to publish the seed for the winner to take his reward.


Title: Re: Questions about lottery
Post by: Crypt0IslanD7 on November 23, 2021, 03:19:40 PM
Theres nothing like doing something to boost your chance of winning. The lottery has its own 'matrix' (or own way) to calculate the chances of winning based on buying rate and popularity of the certain game in the lottery.I think its pure luck cuz if you try to mathematically solve the code with which the system chooses winning answers or numbers it will take you unbelieavably long time and cost you alot of tries.Once there was a chinese emperor named Lyao Tzu that said - " Expect the worst,hope for the best.Then there is no room for surprises! ". In that case Just buy the ticket and hope for the best! |
thanks