So this is my code. I want to create buttons like
Random 1 Random 2 .... ... Random 10
Is there any way I can reach it with for loop in JavaScript? And so is id, like the first button's id is "button1" ....
<script type="text/javascript">
<!--
var i = 0;
var x = new Array(11);
var y = new Array(11);
for (i=1; i<=10; i++)
{
x[i] = 35.38825899+Math.random()*0.007962;
y[i] = 0.03903201/0.007962*x;
document.write('<input type="button" value="Random" onclick="sfcshonan()"/>'+'<br />');
}
//-->
</script>