Whenever I run this code all the variables and functions are "not defined" it says, but I see no errors
This is my code, thanks
<script>
function Random() {
var rand = Math.floor(Math.random() * 600);
}
$(function() {
function Game() {
$("#btn_1", "#btn_2", "#btn_3").fadeIn();
Random()
$("#btn_1").css("margin-left", rand);
Random()
$("#btn_1").css("margin-top", rand);
Random()
$("#btn_2").css("margin-left", rand);
Random()
$("#btn_2").css("margin-top", rand);
Random()
$("#btn_3").css("margin-left", rand);
Random()
$("#btn_3").css("margin-top", rand);
}
});
</script>
</head>
<body>
<button id="start">Start</button>
<button id="btn_1" class="btn">One</button>
<button id="btn_2" class="btn">Two</button>
<button id="btn_3" class="btn">Three</button>
</body>