wrap

scorefile command -- mod-like command

USAGE:
wrap returns the modulus of value, using range as the modulo; i.e. it will keep value within range by "wrapping" it around.

See also mod which apparently does the same thing.