roll_die.Rd
Useful for demonstrating the Law of Large Numbers
roll_die(rolls = 100L, seed = sample.int(.Machine$integer.max, 1))
rolls | an integer (defaults to 100) |
---|---|
seed | random number seed |
ggplot
object
Lawrence R. De Geest
# Roll a die 1000 times and plot the probabilities of each outcome: roll_die(rolls = 1000)