getRandom: getRandom

Description Usage Arguments Examples

Description

Method used to create REARandom object that will be passed in API call to Random.org's generateIntegers method.

Usage

1
2
3
4
  ## S4 method for signature 'REARandom,logical,logical,logical,logical'
getRandom(REARandomObject,
  simplifyVector = TRUE, simplifyDataFrame = FALSE,
  simplifyMatrix = FALSE, flatten = FALSE)

Arguments

REARandomObject

an Object of class REARandom passed to Random.org API to retrieve the specified type of random variates.

simplifyVector

A logical passed to the underlying call to jsonlite::fromJSON()

simplifyDataFrame

A logical passed to the underlying call to jsonlite::fromJSON()

simplifyMatrix

A logical passed to the underlying call to jsonlite::fromJSON()

flatten

A logical passed to the underlying call to jsonlite::fromJSON()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 

# Create a new REARandom object to get a series of random integer values
myNewReaRandomObject <- reaRandom() %>%
					   setIntegers(n = 1000,
					   			   min = 1000000,
					   			   max = 9999999) %>%
					   getRandom(simplifyVector = FALSE,
								  	 simplifyDataFrame = FALSE,
								  	 simplifyMatrix = FALSE,
								  	 flatten = FALSE)


## End(Not run)

wbuchanan/reaRandom documentation built on May 4, 2019, 2:01 a.m.