rand: rand

Description Usage Format Examples

Description

A helper object to easily get pseudo random numbers with high entropy. From time to time, you will observe that calls to this object's methods take a bit more time than usual. This is due to the reseeding mechanism that relies on external entropy. This "global" object is an instance of the randomity class. Type: help(randomity) for more information.

Usage

1

Format

An object of class randomity (inherits from R6) of length 5.

Examples

1
2
3
4
print("Get a single pseudo random number between 0 and 1")
rand$get()
print("Get a dozen pseudo random numbers between -100 and 100")
rand$get(n = 12,min = -100,max = 100)

daviddoret/GRCRToolkit documentation built on May 23, 2019, 7:31 a.m.