I am new to coding and am not sure what is wrong with my current code. Currently i'm using HTML and JS. Here is what I'm trying to do: Create a random number generator from values 1-4. I want the generator to initiate when a submit button is pressed. I get the generator to work and appear on the document however, once I try to switch it to the submit button it stops working. Any help would be highly appreciated. Here is what I have thus far:

<html>
<body>
<textarea rows="1" cols="25" id="option1">
</textarea>
<textarea rows="1" cols="25" id="option2">
</textarea>
<textarea rows="1" cols="25" id="option3">
</textarea>
<textarea rows="1" cols="25" id="option4">
</textarea>
<button id="clickme" name="subject" type="submit" value="Submit">Submit</button>

<p></p>
<script type="text/javascript">
var random = Math.floor(Math.random()*5)
var number = function(random);
$(".clickme").click(number) {
if(number == 0 || number == 5) {
document.write("Still thinking...Click again.");
}
else
{
document.write(number);
}
</script>
</body>
</html>