var r = new Array() for (j=1; j<=20; j++) { var n = random(100); if (r[n] > 0) { j--; trace("repetido")} else {r[n] = n ; trace(n)} }