1
<div id="div1"></div>
2
3
<script>
4
function write1(){
5
var i = 0;
6
for(i=0;i<40;i++){
7
document.getElementById("div1").innerHTML += Math.floor(Math.random()*10+1)+" ";
8
i++;
9
if (i==39){
10
document.getElementById("div1").innerHTML +="</br>";
11
i=0;
12
}
13
}
14
setTimeout("write1()",100);
15
}
16
</script>
17
18
19
<input id="Button1" type="button" value="button" onclick="write1()" />
20

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20
