Brian Lewis
Sunday September 27th 2015
Ever what to produce a histograms for sums when rolling two six-sided dice?
Sure… Who hasn't!
But you don't want to deal with:
Now, thanks to the marvels of modern technology, you don't have to do any of this.
Just use the “SHINY App - Histogram of Dice Roll Results”!!!!!
die <- 1:6
dice <- sample(die, size = 2, replace = TRUE)
dice
[1] 3 5
sum(dice)
[1] 8
The number of rolls can be controlled by a slider!