Forcing people to play your way

Your code is bugged and you are not calculating drops correctly.
What you are doing for each item drop:
Check player 1: If chance-is-fulfilled give item to him
Check player 2: if chance-is-fulfilled give item to him
Check player 3: if chance-is-fulfilled give item to him

This results in player 8 having only the chance to get an item if the 7 players before all miss their chance.
Player 1 only needs to hit his specific chance.

For 0.125 it shouldnt make a difference, but obviously you have some other calculation issue going on there that makes the chances ~80% for every player to get an item if the players before have received no item.

This results in:
p1: 80%
p2: 20% * 80% = ~16%
p3: 20% * 20% * 80% = ~3,2%

So almost exactly the numbers of your example.

Fix your code and the numbers will be as MicroRNA has posted.

Edit: it even says in your logoutput that your assignment chance is not 0.125, but 0.801 instead.
So it is exactly what i said it was.

And you added a loop to ensure that the chance will be anything but 0.125.
You can tell from the code that you most likely ran the same code multiple times just to see how you’d get the most ridiculous numbers from it.
Further above in your log file you can see an example that is alot closer to 0.125 (still not even remotely there, but it seems to be somewhere close to 30% dropchance (of the remaining loot) per player).
So even that already bonkers example was “too fair” for you to use as a “debunk example”.

Very dishonest. But frankly, exactly the way we got to know you already in your other posts.

You are either the most blatant and dishonest liar on this board or so incredibly stupid that you would have trouble keeping your oxygen supply on a livable minimum.
Given your lousy attempt to cheat yourself through and argument you are most likely both.

2 Likes