normal: Generate n pseudo random numbers from a normal distribution...

View source: R/normal.R

normalR Documentation

Generate n pseudo random numbers from a normal distribution with mean 'mu' and standard deviation 'sd'

Description

Generate n pseudo random numbers from a normal distribution with mean 'mu' and standard deviation 'sd'

Usage

normal(n = 1, mu = 0, sd = 1, seed = as.integer(Sys.time()))

Arguments

n

the number of pseudo random normal variants to generate. Defaults to 1.

mu

mean of normal distribution. Defaults to 0.

sd

standard deviation of normal distribution. Defaults to 1.

seed

Seed for pseudo random number generating algorithm. Defaults to a integer generated from the system time

Value

vector of PRNs from specified normal distribution of length n

Examples

normal(n=1e6, mu=0, sd = 3, seed = 122)

donovanquimby/simulationRNG documentation built on March 19, 2022, 12:46 p.m.