gegen: geometric random variable generator

Description Usage Arguments Value See Also Examples

Description

generates n geometric random variables, each by counting number of failures between two wins in consecutive bernoulli trials.

Usage

1
gegen(n , p)

Arguments

n

number of generated numbers

p

parameter p of distribution - success probability

Value

vector of length n, containing n geomtric distributed numbers.

See Also

geplot geest

Examples

1
out  = gegen(100 , 0.5)

mo-mahdavi/RandomGenerator documentation built on May 17, 2019, 4:33 p.m.