How can I use the local variable randomNum
declared in the first function in second function?
btn.click(function() {
var randomNum = Math.floor(Math.random() * (3-0)) + 0;
})
rock.click(function() {
// i want to use `randomNum` variable from the above function
});