Update MathHelper.cpp

defined random function