var random = Math.floor (Math.random() * 10) + 1; //This generates a number between 10 and 1 example.children[random].innerHTML = random; //This displays the number on screen