View source: R/random_normal_factory.R
random_normal_factory | R Documentation |
Makes a function that samples from a normal distribution.
random_normal_factory(mean, sd)
mean |
mean of normal distribution from which to sample |
sd |
standard deviation of the normal distribution |
a function of a single parameter n, with default value 1.
Homer White hwhite0@georgetowncollege.edu
## Not run:
sampler <- random_normal_factory(mean = 70, sd = 5)
## sample one
sampler()
## sample another
sampler()
## sample a third time
sampler()
## sample another 1000
sampler(n = 1000)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.