Method to generate a random 4 digit hexadecimal