added a rand( r, c ) function to MathUtils