Revision c9391aaa376223018f7c8a4d2c92b9cffdb46cfb authored by chou86_e on 13 September 2008, 23:25:27 UTC, committed by chou86_e on 13 September 2008, 23:25:27 UTC
git-svn-id: https://svn.code.sf.net/p/ucblogo/code@199 fc4ef4ee-df3e-0410-84de-fb01f5d6c4f7
1 parent 063fd0f
random
RANDOM num
(RANDOM start end)
with one input, outputs a random nonnegative integer less than its
input, which must be a positive integer.
With two inputs, RANDOM outputs a random integer greater than or
equal to the first input, and less than or equal to the second
input. Both inputs must be integers, and the first must be less
than the second. (RANDOM 0 9) is equivalent to RANDOM 10;
(RANDOM 3 8) is equivalent to (RANDOM 6)+3.
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...