In game currency

As mentioned, the modulo operator can make this quite easy. Here’s a simplistic example I posted in a similar thread: New game - code advice regarding Wealth/Currency