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 Rename column in MSSQL 2005 XMLGregorianCalendar to Date Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment Name * Email * Website Save my name, email, and website in this browser for the next time I comment.