Write a function randomInteger that takes two integer parameters min and max and returns a random integer
Fantastic news! We've Found the answer you've been seeking!
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 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
}
}
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: