swap_seed: Set seed and store a seed which can be used to reset the...

swap_seedR Documentation

Set seed and store a seed which can be used to reset the random number generator

Description

Set seed and store a seed which can be used to reset the random number generator

Usage

swap_seed(new_seed)

Arguments

new_seed

integer. The new seed that is to be set. In case this is parameter is missing, no changes are made and the function just returns NULL. This is useful because a function can just pass on its own seed argument and therefore control whether the seed shall be fixed or left as-is.

Value

The generated seed is returned if it exists. Otherwise NULL. In case that new_seed was missing, NULL is returned.


hadron documentation built on Sept. 9, 2022, 5:06 p.m.