Code Stuff Homepage

Dice Analyzer

Description

This a program I've written that you can use to roll several dice and view the probibility distribution of the outcome. You can leave boxes you don't want to use blank to disable them. This one took a while to rewrite first because I had to decipher my terribly-commented C code and second because I had to figure out how convolution works again. This is a video that talks about it. The rest of the code was basically just formatting. There is a bug that causes the page to keep adding equals signs when you hit "Roll Dice" with nothing in the boxes, but I'm too lazy to fix it. Also, this is written in Javascript so your computer will be doing all the number crunching. keep that in mind if you want to analyze 10000d100 or something. Enjoy! :)

Actual Code

d
d
d
Precision:

You'll see the output here.