<pre>function wrapNumber theNum,maxNum  if theNum / maxNum > 1 then return theNum mod maxNum else return theNumend wrapNumber</pre>