In common game scenarios, there are usually similar to lottery, random rewards for invitees, etc. Have you ever thought of the following questions when you are performing these scenes in the game: 1. Why is the chance of winning always slim? 2. Is the reward you received really t

2025/04/2918:09:35 technology 1351

In common game scenarios, there are usually similar to lottery, random rewards for invitees, etc. Have you ever thought of the following questions when you are performing these scenes in the game:

1. Why is the chance of winning always slim?
2. Is the reward you received really the reward mentioned in the lottery results?
3. Why is the more money you recharge, the easier it is to win?

Random numbers in the game

In common game scenarios, there are usually similar to lottery, random rewards for invitees, etc. Have you ever thought of the following questions when you are performing these scenes in the game: 1. Why is the chance of winning always slim? 2. Is the reward you received really t - DayDayNews

Usually, for a game's lottery, random reward, winning or losing probability, difficulty probability, etc., most of them will generate a random number, then indicate what the random number represents, and then display it to the player.

In fact, what I said above is just a normal, that is, relatively fair implementation method. Because if it is just random, no matter what the probability of winning is, there will be a probability of winning. Even if the numbers 1-10 are greater than 8, they will win, and there is a two-tenth chance of winning.

However, generally speaking, the operator of the game will not be so easy for us to get the results we want. Therefore, they interfere with random numbers and even if you actually get rewards, they will tamper with your results.

Such examples

The author has experienced an example in person.

At that time, my client asked me to develop an invitation lottery game for it. The requirement was that after the user invited a certain number of people, he could draw, and there was a chance that he would get a large amount of cash.

But the logic of the program is not like this. The real logic is as follows:

1. The number of users invited
2. If the number of users invited more people, exceeds one threshold, the random probability will increase, otherwise the winning
3 will never win. If the user wins the big prize, it will be reduced to the level that the operator can bear.

In this project, the lottery data has a ranking list, and the amount obtained and the user are visible, so the following logic is added:

1. Register thirty official accounts (can occupy the ranking list or serve as the initial data of the game)
2. For these thirty small accounts, false data is released without being easily detected: For example, the first place is not the official one now, then we will create an official second place, so that the data difference between the first place and the second place is very small, so that the first place can be encouraged to continue to attract new ones. If the first place is official, then so is it.
3. The official thirty numbers occupy the top thirty rankings. Why

? Why does this happen to

?

Because for such a game, whether it is the game rules, data and the code of the lottery random number, they are all formulated by the game operator. For us players, the moment we click the lottery button, we will not know what happened in the background, nor will we know whether we have won the lottery.

You can ask the operator to publish its code or data. Most operators will not do this and will find a bunch of excuses such as security or privacy. However, even if it is really like you announced it, you can understand it. Can you guarantee that it will not be tampered with?

blockchain game

In common game scenarios, there are usually similar to lottery, random rewards for invitees, etc. Have you ever thought of the following questions when you are performing these scenes in the game: 1. Why is the chance of winning always slim? 2. Is the reward you received really t - DayDayNews

From the above we can see that this kind of problem is caused by: the data and code are not open and transparent, and the data can be tampered with.

If the game's data and code are disclosed, then we can know whether the game is really fair. If it is not fair, we just don't play it.

If the data is not tampered with, then on the premise of fairness, we will win the prize.

And this is the characteristic of blockchain, which involves smart contracts (I will explain it to you in the next section).

On the blockchain, the game code is the smart contract code. Their source code is all exposed to the blockchain browser, where you can see all the codes of the entire game. Whether they are fair can be found out by checking. Secondly, for blockchain, once data is generated, it is impossible to change, and there is no possibility of data tampering.

and even, for smart contracts, there is only destruction, no pause or termination. Once the game publisher has formulated the rules, the rules will not be changed because the player wins too many prizes.

technology Category Latest News