let index = 1; while (true) { if(Math.random() > 0.9) { break; } index++; } alert(index);