Generate Random Number
-
I’m using the following javascript to generate a random number from a form. This is then used as a unique ID number field. Problem is it seems to fail about 10% of the time. Not sure if its failing from specific devices or browser settings. Is there a better or more reliable way of generating a number?
<input id="ID" name="Application_ID"> <script type="text/javascript"> document.getElementById("ID").value = Math.random(); </script>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Generate Random Number’ is closed to new replies.