Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 | ####################################### | |
Add Comment
Please, Sign In to add comment