seed
Initializes the random number generator with a given seed value.
Syntax
seed(iseed)
Parameters
Parameter |
Type |
Description |
---|---|---|
iseed |
number |
Numeric seed value. Should be a positive integer. |
Return
None.
Note
In Python scripts, use Python built-in random
module. For example, you can initialize the random number generator with a seed value using random.seed(iseed)
. See (https://www.tutorialsteacher.com/python/random-module) for more details.
Examples
Python
import nex
nex.seed(1717)
NexScript
seed(1717)