displayRand.text = Math.floor(Math.random() * 10) + " ";
This will now generate a random number. You can change the number after Math.random to anything depending on the range that you want. Post or email me any questions.
WTF Code?
displayRand.text = Math.floor(Math.random() * 10) + " ";
No comments:
Post a Comment