Modified such that Math contains a 'rand' method.