Random number generator w/ button
<p>Basically I have this.. but I want the BUTTON to generate the random number.. which currently only happens when I run the html file, which I don't want that to happen. Thanks!</p>

<pre><code>&lt;body&gt;
&lt;form name="rn"&gt;
      &lt;input type="text" id="tb" name="tb" /&gt;&lt;/br&gt;


    &lt;input type="button" value="Random Number!" onclick="doFunction(Random);" /&gt;
&lt;/form&gt;



&lt;script type="text/javascript"&gt;
    function Random() {
        return Math.floor(Math.random() * 1000000000);
    }




    document.getElementById('tb').value = Random()
&lt;/script&gt;
</code></pre>

<p></p>