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