roll_die | R Documentation |
Roll dice to determine which, if any, is biased.
roll_die(die, times = 1)
die |
|
times |
Integer. The number of times you'd like to roll the die. |
# Roll a die once
roll_die("A")
# Roll a die many times then create a histogram.
rolls <- roll_die("A", times = 100)
histogram(rolls, nint = 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.