View source: R/numberNeededSim.R
numberNeededSim | R Documentation |
You pick random numbers from 0 to 1, until their sum exceeds some target number. What's the expected value of the number of numbers you have to pick?
numberNeededSim(target = 1, reps = 1000, seed = NULL, table = TRUE)
target |
the target number |
reps |
number of simulations to perform |
seed |
The user may provide a seed-value for random-number generation. |
table |
Does the user want a table of the results? |
side effects
Homer White homerhanumat@gmail.com
numberNeededSim(seed = 3030)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.