How to create buttons with different value using for loop
<p>So this is my code.
I want to create buttons like</p>

<p>Random 1
Random 2
....
...
Random 10</p>

<p>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" ....</p>

<pre><code>&lt;script type="text/javascript"&gt;
&lt;!--
  var i = 0;
  var x = new Array(11);
  var y = new Array(11);
  for (i=1; i&lt;=10; i++)
  {
  x[i] = 35.38825899+Math.random()*0.007962;
  y[i] = 0.03903201/0.007962*x;
  document.write('&lt;input type="button" value="Random" onclick="sfcshonan()"/&gt;'+'&lt;br /&gt;');
  }
//--&gt;
&lt;/script&gt;
</code></pre>
