Useful for demonstrating the Law of Large Numbers

roll_die(rolls = 100L, seed = sample.int(.Machine$integer.max, 1))

Arguments

rolls

an integer (defaults to 100)

seed

random number seed

Value

ggplot object

Author

Lawrence R. De Geest

Examples

# Roll a die 1000 times and plot the probabilities of each outcome: roll_die(rolls = 1000)