drawunif(X;A;B)
Returns a random float between A
and
B
, using seed X
.
Syntax
drawunif(X;A;B)
Input
Argument | Type | Description |
---|---|---|
X |
integer | A scalar value
|
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 float between A
and B
is drawn, with
replacement, for each row.
If X
, A
, or B
is N/A, an error is
returned.
Note:
drawunif(X;A;B)
will not work correctly when selections or links with
expansion (expand="1"
) are used. In such cases,
draw_unif(X;A;B)
should be used instead. See draw_unif(X;A;B)
as well as <sel>
and <link>
for
more information.Example
<base table="default.lonely"/> <colord hide="c1"/> <willbe name="unif_int" value="drawunif(4892;0;1)"/> <willbe name="unif_dec" value="drawunif(4892;7.5;10)"/>