Description Usage Arguments Details Author(s)
Simulates the tossing of a coin n times.
1 2 3 |
n |
The number of times the coin is tossed |
prob |
The probability of "Success"; default is 0.5 to simulate a fair coin |
success |
Denotes "success"; default is "H" |
failure |
Denotes "failure"; default is "T" |
... |
additional parameters that may be supplied. |
Can also be thought of as simulating n bernoulli trials; not just coin tosses but any trial in which the outcome is binary.
Justin Strate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.