random: Functions for generating and working with truly random...

Description Usage Arguments Author(s) References Examples

Description

Functions for generating and working with truly random seeds.

Usage

1
2
3
4
random.org(n = 10, rnd = "new")
urandom(n = 10)
rngControl(expr, seed = NULL)
rngSeeds(n, seed = NULL)

Arguments

n

Number of integers required.

rnd

random.org parameter

expr

Expression to be evaluated with RNG control.

seed

RNG seed.

Author(s)

Aaron A. King kingaa at umich dot edu

References

http://www.random.org

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
  ## Not run: 
  random.org(n=5)
  seed <- urandom(n=1)
  seeds <- rngSeeds(5,seed=seed)
  set.seed(seed)
  runif(5)
  rngControl(runif(5),seed=seed[1])
  rngControl(runif(5),seed=seed[1])
  runif(5)
  set.seed(seed)
  runif(5)
  runif(5)
  
## End(Not run)

kingaa/aakmisc documentation built on Dec. 11, 2017, 10 a.m.