seed

Initializes random number generator.

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. See, for example, (https://www.tutorialsteacher.com/python/random-module) for details.

Examples

Python

import nex
nex.seed(1717)

NexScript

seed(1717)