Alters default random function