I was very tired when I posted this and didn't quite fully explain myself.
What I'm trying to do is generate a random number of sorts between 1 and x without using the random number generator function. I need the counter to constantly loop between 1 and an input number, (I added an input button, but can't seem to make it work). When the stop button is clicked I want to document.write (on-screen) the number that the counter was on when stopped, and be able to do it ten times, (retrieve and write on the screen, ten numbers). So if I input var x as 50, the counter will let me pick ten numbers between 1 and 50. I need to be able to change the x, that's why the input box.
I certainly appreciate the help you are giving me, I am new to all of this stuff and just need this counter real bad.
Here's what I have, with an input box/button.
<input type="txt" name="var x" size="4" style="border: 5px solid rgb(126, 157, 185); padding: 2px;"><br/>
<input type="submit" style="" value="Enter X" name="var x;"><br/>
<input type="button" value="Start" onclick="doTimer()"><br/>
<input type="text" size="4" style="border: 5px solid rgb(126, 157, 185); padding: 2px;" id="txt"><br/>
<input type="button" value="Stop" onclick="stopCount()">