Learn R Programming

PRNG (version 0.0.2.1.2)

prbits: Random Bit generator

Description

this function generates random bits of desired length

Usage

prbits(n, Time = TRUE)

Value

returns a vector of random bits of length n

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.

Examples

Run this code
prbits(2)
prbits(2)
prbits(2,Time=FALSE)
prbits(2,Time=FALSE)
 prbits(10)

Run the code above in your browser using DataLab