May 19, 2024, 09:35:24 PM

Author Topic: Two perfectly identical 5dice rolls at critical moments in the same game  (Read 8704 times)

sIKE

  • Playtester
  • Legendary Mage
  • *
  • Posts: 4172
  • Banana Stickers 18
  • Ugh
    • View Profile
Re: Two perfectly identical 5dice rolls at critical moments in the same game
« Reply #15 on: February 02, 2014, 01:12:30 AM »
I have no idea how to get the dice on an online game to favor you. But for my personal dice I like to routine purge those who under perform, and make the others watch as an object lesson.
ROFLMAO
  • Favourite Mage: Malakai Priest

sIKE

  • Playtester
  • Legendary Mage
  • *
  • Posts: 4172
  • Banana Stickers 18
  • Ugh
    • View Profile
Re: Two perfectly identical 5dice rolls at critical moments in the same game
« Reply #16 on: February 02, 2014, 01:23:38 AM »
@silverclaw Nah. Zuberi's already proved me wrong about the chances of a bug with the reasonable argument he made in his last post. I'm just upset that most of the responses I've gotten in this thread  up to this point were so dismissive without really backing up what they were saying. Considering that all it took was for someone to say "there have already been millions of dice rolls" for me to realize that my concerns about the randomness of the dice are baseless, then I don't see why or how this had become a conflict.
@Imaginator

My response was not meant to be an insult, nor cookie cutter.

Let me take things back in time to my first games on OTCGN and before I got involved with it on the dev side. I had a series of game where I had totally awful rolls and I threw a fit at COSWORTH about the impossible nature of my rolls. Think what you experienced and cube it. His response was to implement what he wrote there. I have looked at the code since and (I took over in mid-December) what he coded looks to be properly implemented. However, since the dice roller reaches out to the Inet to generate the numbers from rnd generator there in the cloud. There is also a fallback piece in case of a time out. I wonder if that is what happened here. None of that is logged so I can't review and give you an informed feedback.

I will look into having some code added to trap this info (at least for us devs) so we can see if things are working as expected.

Hope this helps and once again the link I was pointing you to, was so you would have an understanding of how that part of the game was coded. Not excuse.
  • Favourite Mage: Malakai Priest

Aylin

  • Sr. Mage
  • ****
  • Posts: 494
  • Banana Stickers 4
    • View Profile
Re: Two perfectly identical 5dice rolls at critical moments in the same game
« Reply #17 on: February 02, 2014, 01:55:07 AM »
Aylin, could you please help me out here? Thanks!

Without a larger sample size it is impossible to say whether or not the program might not give truly random outputs. In a truly random system, previous results will not influence present or future rolls.

I think the main issue is due to the human brain's knack for finding patterns where none actually exist.
Consider say, a 5-dice roll with effect die that gives:
1x Blank, 1x 1 damage, 1x 2 damage, and 2x 1 critical damage, with any number showing on the effect die.
Probability is: 1/3 * (1/6)^4 * 1/12 = 1/46656 ~ 2.143 E -5

Later in the same game a roll comes up with:
2x Blank, 1x 2 damage, and 2x 1 critical damage, with any number showing on the effect die.
Probability is: (1/3)^2 * (1/6)^3 * 1/12 = 1/23328 ~ 4.287 E -5

But when multiplying those two together we get 1/1088391168 ~ 9.188 E -10. The probability is much lower, yet no one would find it odd that they both occurred in the same game.

I hope that makes sense; I'm trying this just as I'm going to bed.

Sailor Vulcan

  • Secret Identity: Imaginator
  • Legendary Mage
  • *****
  • Posts: 3130
  • Banana Stickers 3
    • View Profile
Re: Two perfectly identical 5dice rolls at critical moments in the same game
« Reply #18 on: February 02, 2014, 11:36:14 AM »
I think I see what you mean. You're saying the chances of any two particular 5 dice rolls occurring in the same game are that astronomically small.

You're right. I just calculated that the chances of any particular set of results with no blanks for a 10 dice roll are about 0.000000016538172, or nearly 2 out of 100 million, regardless of whether they are the same or different. And that's ignoring the effect die.

Blanks have twice the chance of occurring per die as any other outcome, and the chances of rolling ten blanks are significantly higher than rolling one particular combination of ten specific non blanks: 0.000016935087808, or nearly 2 out of 100 thousand.

Even greater than both of these probabilities are the chances of not rolling any blanks at all, which is 0.017341529915833 or about 17 out of 1000.

I stand thoroughly corrected.
  • Favourite Mage: Salenia Forcemaster
I am Sailor Vulcan! Champion of justice and reason! And yes, I am already aware my uniform is considered flashy, unprofessional, and borderline sexually provocative for my species by most intelligent lifeforms. I did not choose this outfit. Shut up.

jacksmack

  • Legendary Mage
  • *****
  • Posts: 1073
  • Banana Stickers 19
    • View Profile
Re: Two perfectly identical 5dice rolls at critical moments in the same game
« Reply #19 on: February 02, 2014, 11:57:39 AM »
stop focusing so much on this particular case.

Consider this:
Roll 5 dice. Note down the result.
Roll 5 dice. Note down the result.

Post it here, and have someone good at math calculate the chance of this (these) particular outcome(s).

You will see that the chance is small no matter how close to average the rolls were.

Sure.. it wont be as small as 1/100000000000000000000000 but it will still be small enough to go "woooot what is the chance of this".


krj

  • Full Mage
  • ***
  • Posts: 141
  • Banana Stickers 0
    • View Profile
Re: Two perfectly identical 5dice rolls at critical moments in the same game
« Reply #20 on: February 02, 2014, 06:53:16 PM »
my worst roll in Mage Wars was when i was attacking i think by Necropian Vampiress by 7 dices and roll 7 blanks :P she suppose to kill and heal, instead she died.. end of story.

ringkichard

  • Flightless Funpire
  • Playtester
  • Legendary Mage
  • *
  • Posts: 2564
  • Banana Stickers 18
  • Kich, if you prefer.
    • View Profile
Re: Two perfectly identical 5dice rolls at critical moments in the same game
« Reply #21 on: February 03, 2014, 10:00:07 AM »
This is what Bayesian statistics is for, isn't it? (I am not a statistician.) We had one extremely unlikely event, but what are the odds of that single event occurring out of a population of other events? We'd need to estimate priors and such.
I can take the fun out of anything. It's true; here, look at this spreadsheet.

piousflea

  • Sr. Mage
  • ****
  • Posts: 435
  • Banana Stickers 2
    • View Profile
Re: Two perfectly identical 5dice rolls at critical moments in the same game
« Reply #22 on: February 03, 2014, 12:45:58 PM »
Basic internet gaming common sense:

1) No "pseudo random number generator" (PRNG) is truly random. With sufficient information about the programming of any given PRNG code, you could predict the pattern of random numbers rolled. This principle has been used repeatedly to steal money from online poker sites. (Therefore, in the modern day they take great efforts to use good PRNG algorithms and difficult to predict seeding)

2) That said, the probability of encountering a "strange" roll is extremely high. Anyone who's played enough tabletop games with real dice knows that you see really weird/frustrating rolls all the time. Randomness is random, and that means that you see "uncommon" results quite often. For example, the probability of getting one specific "strange" rolls may be 1:100 million against, but if there are a million different rolls that the human brain interprets as "strange", then you'll see a strange roll every 100 rolls.

3) Given #1 and #2, when you see a weird online dice roll it is impossible to tell whether it is a bug in the code, or simply a "strange" outcome (that would have happened with truly random dice). Most of the time it is probably #2, but this can never be 100% proven.

Bjorne

  • New Mage
  • *
  • Posts: 42
  • Banana Stickers 0
    • View Profile
Re: Two perfectly identical 5dice rolls at critical moments in the same game
« Reply #23 on: February 03, 2014, 04:31:43 PM »
I think the probability should be closer to 1 in a milion for the two consecutive rolls. There are 5 ways of getting 4 blanks and 1 normal damage so:

p =  [ (5 * (2/3)^4) * 1/6 *1/12 ]^2 = 7.4e-7

but that is if you roll two times and only two times.

If you make several rolls over the course of a game (or several games), you have to consider that any of them can be the above. The probability for two of this roll to occur at least twice over, say thirty rolls (435 ways of arranging 2 rolls over 30 rolls total) is:

435 * p^2 * (1-p)^28 = 0.0003

Still unlikely, but not astronomical. And as Aylin suggests, this is only when looking at this particular result. The probability for any 2 results (no matter what result) to be identical over the course of 30 rolls, is higher of course.

There can still be a bug in the random generator I guess.

barriecritzer

  • Full Mage
  • ***
  • Posts: 197
  • Banana Stickers 0
    • View Profile
Re: Two perfectly identical 5dice rolls at critical moments in the same game
« Reply #24 on: February 03, 2014, 05:40:54 PM »
I have made rolls like that using actual dice before, it does happen sometimes. Just like the in the very first game of Mage Wars I ever played I rolled 6 crit 2s on one roll.

Aylin

  • Sr. Mage
  • ****
  • Posts: 494
  • Banana Stickers 4
    • View Profile
Re: Two perfectly identical 5dice rolls at critical moments in the same game
« Reply #25 on: February 03, 2014, 06:28:25 PM »
In one of my very early games (third I ever played), my opponent cast a Group Heal on 4 Foxes and Redclaw. The spell rolled all blanks on Redclaw and two of the Foxes.

aquestrion

  • Sr. Mage
  • ****
  • Posts: 263
  • Banana Stickers 1
    • View Profile
Re: Two perfectly identical 5dice rolls at critical moments in the same game
« Reply #26 on: February 05, 2014, 12:17:39 PM »
My friend rolls like a god.. with force master and dancing scimitar he rolled all crits against my priest 8!/7/6 and next turn he hurled boulder for 12 damage (10 crit) turn 5 I was at 1 life so to get your dice to work better give them to a friend to roll

Wildhorn

  • Superior artificial brain, feel free to call me Blaine.
  • Legendary Mage
  • *****
  • Posts: 1063
  • Banana Stickers 3
    • View Profile
    • Mage Wars Quebec
Re: Two perfectly identical 5dice rolls at critical moments in the same game
« Reply #27 on: February 05, 2014, 04:49:44 PM »
The friend of my grand mother once rolled a 3 on a die!... ;D

Sailor Vulcan

  • Secret Identity: Imaginator
  • Legendary Mage
  • *****
  • Posts: 3130
  • Banana Stickers 3
    • View Profile
Re: Two perfectly identical 5dice rolls at critical moments in the same game
« Reply #28 on: February 05, 2014, 05:32:22 PM »
The friend of my grand mother once rolled a 3 on a die!... ;D

LIES! With a D6 you can only roll 0s, 1s, and 2s.

Wait, does your grandmother's friend play Mage Wars?  :o

I have this idea that's been put in my head that by the time I'm elderly my tastes will have changed so drastically that I won't enjoy customizable strategy games anymore, and will prefer "tamer" games, like Go, Chess, and Bridge.

I know it's ridiculous. In spite of all of the cultural and psychological evidence to the contrary, nothing that I know of can completely dislodge this fear from my mind short of real life examples of people who are 65 years old or older who play the kinds of games I like.

However, considering how young Mage Wars is, I don't think it's very likely that there will be anyone on here who's that old.

Thank you for all of your well reasoned arguments and real life examples. I was completely wrong about the abnormality of the Dice rolls I got in that one game. I feel much better about it now, thank you! :)
  • Favourite Mage: Salenia Forcemaster
I am Sailor Vulcan! Champion of justice and reason! And yes, I am already aware my uniform is considered flashy, unprofessional, and borderline sexually provocative for my species by most intelligent lifeforms. I did not choose this outfit. Shut up.