RosettaCodeData/Task/Array-length/Robotic/array-length-2.robotic

9 lines
179 B
Plaintext

set "index" to 0
set "local1" to random 1 to 99
: "rand"
set "array&index&" to random 0 to 99
inc "index" 1
dec "local1" 1
if "local1" > 1 then "rand"
* "Array length: ('index')"