john rob Total Post:108 Points:756 Posted by john rob May-07-2013 0:59 AM Android Android 1 Reply(s) 7384 View(s) Ratings: Rate this: Hello everyone, 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!