Getting odd number

JamJarRiotJamJarRiot Member Posts: 62
edited November -1 in Working with GS (Mac)
Ok, I need to know if a number is odd or even. Say I have a random value between 1 and 6, what's the calculation for doing this? I've done it before using Modulo but it escapes me at the moment.

Comments

  • simo103simo103 Member, PRO Posts: 1,331
    if you do the number %2 if it is odd it is 1 if even it is 0
Sign In or Register to comment.