REPEAT Loop construct that repeats the loop a given number of times.
CONTROLS
REPEAT value block
value - numeric value
block - Block with the instructions to process within the loop
This method has no refinements
REPEAT Loop construct that repeats the loop a given number of times.
Use REPEAT to write 100 random numbers
random/seed now
repeat 100 [
random-byte: random 255
while random-byte > 199 [
random-byte: random 255
]
random-100: 1 + modulo random-byte 100
write/line random-100
]
FOR-EACH
FOREVER
FOR
WHILE
UNTIL