Skip to content

Instantly share code, notes, and snippets.

@MBO
Created September 15, 2010 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MBO/581486 to your computer and use it in GitHub Desktop.
Save MBO/581486 to your computer and use it in GitHub Desktop.
mirko@akagi.pts/7 ~/Code/rolldice
23:02:57 % ./rdp 1d6 2d6 3d6
1d6
1d6+0
min: 1, max: 6, avg: 3.5
| # | cnt | cumulative distribution | probability mass |
+===+=====+==========================================+==========================================+
| 1 | 1 | ###### | ###### |
| 2 | 1 | ############# | ###### |
| 3 | 1 | #################### | ###### |
| 4 | 1 | ########################## | ###### |
| 5 | 1 | ################################# | ###### |
| 6 | 1 | ####################################### | ###### |
2d6
2d6+0
min: 2, max: 12, avg: 7.0
| # | cnt | cumulative distribution | probability mass |
+====+=====+==========================================+==========================================+
| 2 | 1 | # | # |
| 3 | 2 | ### | ## |
| 4 | 3 | ###### | ### |
| 5 | 4 | ########### | #### |
| 6 | 5 | ################ | ##### |
| 7 | 6 | ####################### | ###### |
| 8 | 5 | ############################ | ##### |
| 9 | 4 | ################################# | #### |
| 10 | 3 | #################################### | ### |
| 11 | 2 | ###################################### | ## |
| 12 | 1 | ######################################## | # |
3d6
3d6+0
min: 3, max: 18, avg: 10.5
| # | cnt | cumulative distribution | probability mass |
+====+=====+==========================================+==========================================+
| 3 | 1 | | |
| 4 | 3 | | |
| 5 | 6 | # | # |
| 6 | 10 | ### | # |
| 7 | 15 | ###### | ## |
| 8 | 21 | ########## | ### |
| 9 | 25 | ############### | #### |
| 10 | 27 | #################### | ##### |
| 11 | 27 | ######################### | ##### |
| 12 | 25 | ############################# | #### |
| 13 | 21 | ################################# | ### |
| 14 | 15 | #################################### | ## |
| 15 | 10 | ###################################### | # |
| 16 | 6 | ####################################### | # |
| 17 | 3 | ####################################### | |
| 18 | 1 | ####################################### | |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment