Change random hex function.