ShareCodeSnippet
Link to this code: https://sharecodesnippet.com/406
const min = 69;
const max = 666;

let rand;
let i = 0;
while ((rand = Math.floor(Math.random() * (max - min) + min)) !== 420) {
    console.log(rand);
    ++i;
}
console.log(`It took ${i} attempts to get to 420.`);