Rev Language Reference


seed - Seed set function

Sets the random number generator seed given a natural number.

Usage

seed(Natural x)

Arguments

x : Natural (pass by value)
The number used to seed the random number generator.

Return Type

Example

# pick some definitely random number
seed(80797980)
a <- rUniform(1,0.6,1.2)
a
seed(80797980)
a <- rUniform(1,0.6,1.2)
a # this will be the same as above!