rand

Returns a number with uniform random distribution from 0 to 1.

Syntax

rand()

Parameters

None.

Return

Returns a number with uniform random distribution from 0 to 1.

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
r = nex.rand()

NexScript

doc = GetActiveDocument()
r = rand()