randRange( 0, 255 )

Express binary to8BitString(Dec) in hexadecimal (base 16) notation. (drop leading zeroes and no spaces)

Dec.toString(16).toUpperCase()

Working right to left, convert 4-bit chunks into a hexadecimal digit.

The answer is Dec.toString(16).toUpperCase()