Skip to content

PattMayne/dice-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

DICE STATS

I'm fascinated by the idea that, if you roll a die multiple times and add up the results, the sum is increasingly likely to be close to the very-middle of the range of possible sums.

I wanted to test that and just run it repeatedly to see those results.

I also wanted an excuse to use Nim, so I made this little script as an excuse to use Nim.

It runs in the command line. You need to intall Nim to use it.

Choose the number of sides of a die, and how many times to roll it.

Calculate the maximum and minimum possible sums for the chosen numbers.

Add the rolls together.

Display how far we hit from middle of possible sums.

Display both raw numbers and percentage.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages