A game of survival, trade and exploration in the universe of Fallen London
The RNG is broken! (No, really)
xnyhps Posts: 14
3/6/2018

I was reading through the FAQ and found the answer to the question "I failed an easy challenge five times in a row. Is your random number generator really random?":
Leaving aside some highly technical qualifications — yes, it is. Randomness is streaky. There are so many individually unlikely possibilities that, if you play often, you will almost certainly encounter some of them.
If that doesn’t convince you, you can take a look at this scatter graph of ten thousand randomly generated numbers from Sunless Sea. Should you wish to subject it to statistical analysis, we’ve also made the raw data available on Pastebin. We’d be amazed if you find anything out of the ordinary, though (apart from the outline of a wallaby visible on the top left).
I looked at the data on pastebin and the graph, and now I'm actually convinced the rng is wrong! (And I don't think counting to 100 is that technical.)
I assume that these values are (supposed to be) used for storylets with a skill or luck challenge, which always show the chance to succeed as a percentage.
Looking at the graph (or through the pastebin), it shows that random values have been generated from 1 to 99: both 0 and 100 never occur. That's 99 unique values, just to be clear.
But in order to replicate a random event with a probability of a certain percentage exactly, you need 100 different outcomes, each with a probability of 1%. This would mean that for each random event the probability which is shown is not equal to the actual probability, as each unique value occurs with a probability of 1.01%. This would also mean that there are two values where the probabilities are equal: it could be that a shown chance of "1%" happens with probability 0%, or "99%" actually happens 100% of the time! We can't tell without knowing how these values are used.
Alternatively, these values were not generated by the game itself but by a simulation, which makes me wonder if the results may not correspond to the game in more ways...


+1
link

dov Posts: 2556
3/6/2018

xnyhps wrote:
I assume that these values are (supposed to be) used for storylets with a skill or luck challenge, which always show the chance to succeed as a percentage. They clearly stated that these numbers came from Sunless Sea, not Fallen London. There's also no indication that they are meant to give results in percentages.
The numbers are there to try and prove that you can find all kinds of "improbable" streaks in a randomly generated list of inputs. (the question was specifically about encountering several failures in a row, and their answer is about streaks).
 Want a sip of Hesperidean Cider? Send me a request ingame. Here's an_ocelot's guide how. (Most social actions are welcome. Please no requests to Loiter Suspiciously and no investigations of the Affluent Photographer)


+2
link

dov Posts: 2556
3/7/2018

xnyhps wrote:
dov wrote:
xnyhps wrote:
I assume that these values are (supposed to be) used for storylets with a skill or luck challenge, which always show the chance to succeed as a percentage. They clearly stated that these numbers came from Sunless Sea, not Fallen London. There's also no indication that they are meant to give results in percentages.
The numbers are there to try and prove that you can find all kinds of "improbable" streaks in a randomly generated list of inputs. (the question was specifically about encountering several failures in a row, and their answer is about streaks).
What does Fallen London have to do with it?
They give the numbers in response to a question about easy challenges and invite us to statistically analyze them. What would be the point of analyzing those numbers if they are not generated for those challenges? I might as well analyze some dice I'm rolling myself, both would not help determine if the random numbers used by the game are actually random. Random numbers are used all the time for lots of things. For example  to roll the range of bundles of oddities, the determine card draws, to determine rewards out of a range, etc.
You assume that these particular numbers are for calculating percentages of success in a challenge.
 Want a sip of Hesperidean Cider? Send me a request ingame. Here's an_ocelot's guide how. (Most social actions are welcome. Please no requests to Loiter Suspiciously and no investigations of the Affluent Photographer)


+1
link

Buffalohump Posts: 1
6/8/2019

That is not a wallaby...It is obviously a giraffe


+1
link
