First page Back Continue Last page Image
- I know in advance how many loops to do
- Loop until a condition is met
- for (var i=0; i<24; i++){
- do some code
- }
- do {
- do some code
- }
- while (usedNums[newNum]);
- Start at 0 and loop 24 times (why 24?)
- Loop until you have a unused number