fixSeed: Fix seed value.

Description Usage Arguments Value Author(s) Examples

Description

Fix seed value using random value when specified value is -1.

Usage

1
fixSeed(vSeed)

Arguments

vSeed

a integer, a seed used when reproducible results are needed. When a value inferior or equal to zero is given, a random integer is used.

Value

a double, the seed value.

Author(s)

Pascal Belleau, Astrid Deschenes

Examples

1
2
3
4
5
## Return vSeed value when value is superior to zero
subnetsim:::fixSeed(vSeed = 10)

## Return new value when value is inferior to zero
subnetsim:::fixSeed(vSeed = -1)

belleau/subnetsim documentation built on May 27, 2019, 2:08 p.m.