SyntaxFix
Write A Post
Hire A Developer
Questions
Random r = new Random(); int i1 = r.nextInt(80 - 65) + 65;
This gives a random integer between 65 (inclusive) and 80 (exclusive), one of 65,66,...,78,79.
65,66,...,78,79