Added random hex function