Hello,
I wish to make a variable which is a function that returns a random number when run.
for simple simon’s sake, here is a silly example …
var ran = function(){
Math.random()*1;
return;
}
console.log(ran); // gives me my random number
AND
console.log(ran+" "+ran); // gives me two different random numbers
Can someone help my syntax!?
Thanks