Open linuxdaemon opened 5 years ago
I've looked over the formula and it seems to be accurate, although random.gaussian is faster according to the library documentation.
The first argument is the mean result, while the second argument is the standard deviation, the sum of dice rolls follow a normal distribution.
We currently can not prove that https://github.com/snoonetIRC/CloudBot/blob/7c210ddc5cd650fb562cc3cfb7a160151478858c/plugins/gaming.py#L54-L57 fairly calculates the sum of
count
rolls ofn
-sided dice. This method for 'faking' the rolls may be able to be cleaned up and improved.