<script>function rand(min,max){ return min+parseInt(Math.random()*(max-min+1))} </script>
<script>
function jz(a, b) {
document.write('<table>')
for (var i = 1; i <= a; i++) {
row(b)
}
document.write('</table>')
}
function row(n) {
document.write('<tr>')
for (var num = 1; num <= n; num++) {
document.write('<td>' + rand(0, 100) + '<td>')
}
document.write('</tr>')
}
jz(5, 8)