changed math function to FLOOR in order to avoid getting rand result of undefined.  Boom.