4/20/2024 0 Comments Carnival 2018 forge of empires![]() Run it 10 times, note the distribution (hint: it will be unlikely it matches the actual probabilities). If you're familiar with randomness in code, write your own program like the above that runs the above snippet a configurable number of times. We're talking on the order of thousands of samples to be sufficient. If(foo >= 0 & foo = 3 & foo < 5) // the range gives a SoK, aka 2/20 numbers gives SoK, aka 10% chanceĬertainly there are cleaner ways of doing this, but this will give the expected distribution given a large enough sample size. Int foo = rand () % 20 // We divide a random number by 20 and store the remainder, giving us a random number between 0-19. Let me show you how something like these chests would be programmed with a simple example: Bus schedules are nothing like random number generators, in fact a "bus runs every X minutes on average" is not even a promise of future behavior, just an observation of past behaviors. I am an engineer by education and profession, I code for a living, and have taken multiple classes on probability theory. ![]() I'm not making any assumptions based on longevity playing this game. ![]() So "obviously" the SoK drop chance isn't 10%, it has to be 30%. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |