Create Random String Using Hex String In Java

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.

Related Posts Plugin for WordPress, Blogger...

2 comments

Leave a Reply

Your email address will not be published. Required fields are marked *