I want to generate random no. in a specific range for use in my android application. (Ex. Range Between 65 to 80)
I try as per below code, but it is not very use full. It also returns the value greater then max. value(greater then 80).
Random r=new Random();
int i1=(r.nextInt(80) +65);
Anyone have idea How I can generate random number in between range.
Thanks in advance!