I have an interface class and in this class I need to create an abstract method that generates a random int. However, when I try to compile I get an error because abstract classes cannot have bodies. How can I create an abstract method that generates a random int? I also need to specify an upper limit (I said 40).
{
    /**
     * This method generates a random number. 
     *
     * @param  y a sample parameter for a method
     * @return   the result produced by sampleMethod
     */
     Random rnd = new Random();
     System.out.println(rnd.nextInt(40));
}