Rikei ga Koi ni Ochita no de Shoumei shitemita - Vol. 18 Ch. 90 - Science Stays At A Hot Springs Inn For Christmas (Part 3)

Supporter
Joined
Nov 30, 2019
Messages
113
Speaking of random numbers, the seemingly unrandom nature of randomly generated numbers is why some games use a pseudo-random number generation system to simulate fairness.

For instance, in fire emblem every unit has a percent chance to hit another unit, but in some games they calculate it by generating 2 random numbers, finding the average, then comparing that average against the hit chance to see if an attacks hits or not.

Dota also has pseudo-RNG, for some abilities that do something like "25% chance to stun enemy", the first time you use the ability it has below 25% chance to stun, then every time you re-use it the chance increases until you stun - at which time, the percent chance resets. Over an entire game, the number of stuns averages out to 25%.
 

Users who are viewing this thread

Top