;& lt輸入?id=\"tt \"?type = \" text \"/& gt;& ltbr/>;& l" />
& lt輸入?id="bb "?type="button "?Value= "生成"?onclick = ' gg()'/& gt;& ltbr/>;
& lt輸入?id="tt "?type = " text "/& gt;& ltbr/>;
& lt/div & gt;
& lt風格?type="text/css " >
輸入{
邊距:?10px;
}
& lt/style & gt;
& lt劇本?type = " text/JavaScript " & gt;
功能?gg?()?{
document.getElementById('tt ')。價值?= math . floor(math . random()* 1000);
}
& lt/script & gt;
1000以內的隨機數