draw_unif(X;A;B)

Returns a random float between A and B, using a given seed that remains persistent (sticky) even after selections or links with expansion are used.

Syntax

draw_unif(X;A;B)

Input

Argument Type Description
X integer A scalar value

X is the seed

A integer or decimal A scalar value

The start of the range of the randomly-generated float.

B integer or decimal A scalar value

The end of the range of the randomly-generated float.

Return Value

A random number is drawn, with replacement, for each row.

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

Note: draw_unif(X;A;B) will work correctly even when selections or links with expansion (expand="1") are used because the results are sticky. This means that the random number generated by the function for each row will be the same after the expansion. When the drawunif(X;A;B) function is used, a different random number will be generated for each of the expanded rows.