Question: Write a function randomInteger that takes two integer parameters min and max and returns a random integer value between min and max (inclusive). Have the
Write a function randomInteger that takes two integer parameters min and max and returns a random integer value between min and max (inclusive). Have the main method call the function with different values.
public class RandomNumberInRange
{
//add your method here
public static void main(String args[])
{
//test your method by calling it
}
}
Step by Step Solution
There are 3 Steps involved in it
Java Code Screenshot Java Program import javautil public class RandomNumberInRange public st... View full answer
Get step-by-step solutions from verified subject matter experts
