drawrand(X)

Returns a random float between 0 and 1, seeded with X.

Syntax

drawrand(X)

Input

Argument Type Description
X integer A scalar value

X is the seed

Return Value

A random float between 0 and 1 is drawn, with replacement, for each row.

If X is N/A, an error is returned.

Note: drawrand(X) will not work correctly when selections or links with expansion (expand="1") are used. In such cases, draw_rand(X) should be used instead. See draw_rand(X) as well as <sel> and <link> for more information.

Example

<base table="default.lonely"/>
<colord hide="c1"/>
<willbe name="drawrand" value="drawrand(4892)"/>