How can I determine if a randomly generated number is even or odd?
number%2 gives you either 1 or 0
Develop games in your browser. Powerful, performant & highly capable.
Great, thanks. :)