Hi, I need a random string, I want every user when saving data, the name of the
file is like this: resultXXXX.txt, I need to concatenate XXXX to "result" and "txt",
Regards
Printable View
Hi, I need a random string, I want every user when saving data, the name of the
file is like this: resultXXXX.txt, I need to concatenate XXXX to "result" and "txt",
Regards
java.util.Random rnd = new Random( 12345 );
String szRand = new Integer( rnd.nextInt() ).toString();
String szFileName = "result" + szRand + ".txt";
SY, SkyM