📅  最后修改于: 2022-03-11 15:01:55.487000             🧑  作者: Mango
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