Can someone help me? I would like to make a simple code where dom generates a random number from 0-14 and adds it to the ran array and it will only stop once all numbers from 0-14 are inside the array.
function random () {
let ran = []
let dom = Math.floor(Math.random() * 15)
while (a != a.length(15)) {
a.push(b)
return a
}
}
console.log(random)