Tag: hex string

Here is a short method to create a random string using a class, in this case the Integer class’, toHexString() method to generate random hex strings from at least a specified length. These are rounded up to a multiple of 8 characters and this is assuming you are flexible with the character set that will be randomly generated.