<script>
var min = 1000;
var max = 9999;
var s = Math.round(Math.random() * (max - min)) + min;
var qiana = parseInt(s % 10000 / 1000);
var bai = parseInt(s % 1000 / 100);
var shi = parseInt(s % 100 / 10);
var ge = parseInt(s % 10);
var num = qiana + bai + shi + ge;
document.write(s + '个十百千的和为' + num)
</script>
转载请注明原文地址:https://ipadbbs.8miu.com/read-3643.html