Repeat statement
A repeat statement has the form
repeat (<expression>) <statement>
The statement is repeated the number of times indicated by the rounded value of the expression.
Example
The following program creates five balls at random positions.
{
repeat (5) instance_create(random(400),random(400),ball);
}
repeat (5) instance_create(random(400),random(400),ball);
}
Contributor: Mark Overmars

Related: