how to generate a random String? in java
Posted
by chandra wibowo
on Stack Overflow
See other posts from Stack Overflow
or by chandra wibowo
Published on 2010-05-19T08:18:21Z
Indexed on
2010/05/19
8:20 UTC
Read the original article
Hit count: 289
hi everyone, i have an object called Student, and it has studentName, studentId, studentAddress, etc. for the studentId, i have to generate random string consist of seven numeric charaters, eg. studentId = getRandomId(); studentId = "1234567" <-- from the random generator. and i have to make sure that there is no duplicate id. thanks in advance
© Stack Overflow or respective owner