% is the "modulo" operator. For integers a and b, a % b is the remainder when a is divided by b. Some examples:

8 % 3 = 2
11 % 5 = 1
n % 2 = 1 for n odd
n % 2 = 0 for n even

And so on......