chiSquared: Generate n pseudo random numbers from a chi-squared...

View source: R/chiSquared.R

chiSquaredR Documentation

Generate n pseudo random numbers from a chi-squared distribution.

Description

Generate n pseudo random numbers from a chi-squared distribution.

Usage

chiSquared(n = 1, k = 1, seed = as.integer(Sys.time()))

Arguments

n

the number of pseudo random chi-squared numbers to generate. Defaults to 1.

k

degrees is the degrees of freedom. Defaults to 1.

seed

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

Value

vector of chi-squared random variants of length n

Examples

chiSquared(n=1e5, k =6, seed = 155)

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