I want, my HTML document to output random numbers for Dungeons and Dragons. However, the code isn't working and I can't workout why.
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.10.2.js">
$(document).ready(function(){
$("#d4").click(function(){
var out = Math.random(1,4);
alert(out);
};
});
</script>
</head>
<body>
<p id ="d4">Roll a d4</p>
</body>
</html>