random_number=0; for (k=0;k<this.numRows/3;k++){ // обработка данных current_i=random_number; random_number+=7+Math.floor(Math.random () * 6) for (i=current_i;i<random_number;i++) { // обработка данных } }