Implemented randomize and rnd.