lognormal: Generate n pseudo random numbers from a lognormal...

View source: R/lognormal.R

lognormalR Documentation

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

Description

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

Usage

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

Arguments

n

the number of pseudo random lognormal numbers to generate. Defaults to 1.

mu

mean of normal distribution. Defaults to 0.

sd

standard deviation of normal distribution. Defaults to 0.25.

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

lognormal(n=1e6, mu=0, sd = 3, seed = 123)

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