This is for my game but posted it here as it doesn't specifically relate to game programming.

Basically I have an integer variable called FoodIndex which gets incremented throughout the game. Every time it gets incremented I want to test if it is a multiple of 20 so that I can place A bonus item on the screen.

Any ideas how I can go about this?