Yogesh's Blog

Sharing me with blog…

October 25th, 2010

16 characters random code

Java, by Yogesh.

In java, there is a vary simple way to generate 16 characters random code. All you need to do is : write this statement:

Long.toHexString(Double.doubleToLongBits(Math.random()))

This will return you 16 char random code.

Back Top

Leave a Reply

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