the number b included, and how to enable a - I can not figure it out
import java.util.Random; public class RandomNumberMethod { public int c; public int randomNumber (int a,int b){ Random random = new Random(); if (b>a) { c = random.nextInt(b - a) + a+1; }else{ if (b<a) { c = random.nextInt(a - b) + b+1; }else{ c=a; } } return c; } }