https://github.com/jrincayc/ucblogo-code
Revision 9d825e1f50bfd241cbf86d1a3dd4d2356b1ed8c4 authored by Barak A. Pearlmutter on 19 October 2019, 21:12:40 UTC, committed by Barak A. Pearlmutter on 22 July 2020, 19:36:14 UTC
1 parent 3d60703
Raw File
Tip revision: 9d825e1f50bfd241cbf86d1a3dd4d2356b1ed8c4 authored by Barak A. Pearlmutter on 19 October 2019, 21:12:40 UTC
quash some warnings
Tip revision: 9d825e1
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.

back to top