brgen: bernoulli random variable generator

Description Usage Arguments Value See Also Examples

Description

generates "count" bernouli random variables, each by conditioning on a uniform random variable.

Usage

1
brgen(count , p)

Arguments

count

length of the vector of generated numbers

p

parameter p - success probability

Value

a vector of length count of bernoulli random variables.

See Also

brest brplot

Examples

1
brgen(100 , 0.6)

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