I am currently working on developing a random number generator that takes user input through HTML. The idea is to have the user enter two values and then click "submit" to receive a random number within that range.
However, I seem to be stuck at this point. What steps should I take next?
Here's an outline of the code so far:
<html>
<input type="text" class="min"><br>
<input type="text" class="max"><br>
<button class="button">Submit</button>
</html>
And here's the JavaScript function for generating the random number:
function myRand(min, max) {
var min = document.getElementByClassName(min).value;
var max = document.getElementByClassName(max).value;
var button = document.getElementByClassName(button);
var result = Math.floor(Math.random()) * (max - min) + min;
return result;
}