SyntaxFix
Write A Post
Hire A Developer
Questions
The easy way is to use:
Random rand = new Random(System.currentTimeMillis());
This is the best way to generate Random numbers.
Random