prbits: Random Bit generator

View source: R/PRNG.R

prbitsR Documentation

Random Bit generator

Description

this function generates random bits of desired length

Usage

prbits(n, Time = TRUE)

Arguments

n

number of bits required

Time

it is a boolean value of TRUE/FALSE if we want to generate time dependent random bits.i.e each time we call the function with same input different output will be generated.

Value

returns a vector of random bits of length n

Examples

prbits(2)
prbits(2)
prbits(2,Time=FALSE)
prbits(2,Time=FALSE)
 prbits(10)


PRNG documentation built on Sept. 11, 2024, 6:13 p.m.