draw_rand(X)
Returns a random number using a given seed that remains persistent (sticky) even after selections or links with expansion are used.
Syntax
draw_rand(X)
Input
Argument | Type | Description |
---|---|---|
X |
integer | A scalar value
|
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:
draw_rand(X)
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
drawrand(X)
function is used, a different random number will be
generated for each of the expanded rows.