Shiny App

Brian Lewis
Sunday September 27th 2015

Histogram of Dice Roll Results

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:

  • Cost of a pair of dice
  • Time involved rolling the dice umpteen times
  • Bother of tracking the dice sums and drawing the histogram

WOW!

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”!!!!!

R Simulates Rolls of 2 Six-Sided Dice

die <- 1:6
dice <- sample(die, size = 2, replace = TRUE)
dice
[1] 3 5
sum(dice) 
[1] 8

R Then Plots a Histogram of the Frequency of Dice Rolls

Dice

The number of rolls can be controlled by a slider!