Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java repeat loop cycle for

for(int  i = 0; i < 10; i++) {
  	//your code
	if(random.nextInt(5) == 0) { i--; } //1 in 5 chance to repeat loop cycle
}
 
PREVIOUS NEXT
Tagged: #java #repeat #loop #cycle
ADD COMMENT
Topic
Name
6+4 =