function print(n,m){
document.write("<table>");
for(var i=0; i<n; i++){
document.write("<tr>");
for(var j=0; j<m; j++){
document.write("<td>");
document.write( Math.round( Math.random()*100 ) );
document.write("</td>");
}
document.write("</tr>");
}
document.write("</table>");
}