id: rand title: RAND sidebar_label: RAND

RAND

Kind: global class
this: {RAND}

new RAND()

Creates an instance of RAND

ranD.clean()

Delete all internal state of a random number generator

Kind: instance method of RAND
this: {RAND}

ranD.sbrand()

Marsaglia & Zaman random number generator

Kind: instance method of RAND
this: {RAND}

ranD.seed(rawlen, raw)

Initialize RNG with some real entropy from some external source

Kind: instance method of RAND
this: {RAND}

ParamDescription
rawlenthe number of seed bytes provided
rawan array of seed bytes

ranD.getByte()

Get random byte

Kind: instance method of RAND
this: {RAND}

RAND.pack()

Pack 4 bytes into a 32-bit Word

Kind: static method of RAND
this: {RAND}