Description Usage Arguments Value Examples
View source: R/simulate_roll.R
Simulates results of n trials between two dice. It takes the number of trials, and the two dice to simulate trials for.
1 | simulate_roll(dice_a, dice_b, n)
|
dice_a |
The first dice, which we calculate the probability of winning
against |
dice_b |
The second dice, which we use to calculate the probability that
|
n |
An integer representing the number of simulated trials. |
A decimal representing percentage of the n
rolls dice_a
won.
1 | simulate_roll(c(1,2,3), c(1,2,3), 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.