Use the modulo (or "remainder") operator %:
%
var anynumber = (95 + 9) % MaxValue;
1.4m articles
1.4m replys
5 comments
57.0k users