I\'m a web-game developer and I got a problem with random numbers. Let\'s say that a player has 20% chance to get a critical hit with his sword. That means, 1 out of 5 hits
You are looking at a linear distribution, when you probably want a normal distribution.
If you remember back in your youth playing D&D, you were asked to roll multiple n-sided die, then sum the results.
For instance, rolling 4 x 6-sided die is different than rolling 1 x 24-sided dice.