How to avoid duplicate numbers in this random generator?
var soma = 0
while (soma < 1000) {
soma += parseInt(Math.random() * 100)
document.write(soma + "<br>")
}
As you run, it arrives at a certain point that it brings with it incidences of values.