Returns X such that 0 <= X < max
Note that max is exclusive, making it compatible with array indexing
See Implementation
Returns X such that 0 <= X < max
Note that max is exclusive, making it compatible with array indexing