reverting math random