repeat(x, l)
Number
Loops the value x so that it wraps around when it exceeds the length l, keeping the result between 0 and l.