Computer Science, asked by julie8604, 1 month ago

Write a function named checkRandomEven that accepts three integer arguments, suppose these three arguments are num, lower and upper, respectively. Your function generates num number of random integers within the range of [lower, upper], and then returns the number of even integers among these num number of random integers

Answers

Answered by jeromeseejo73
0

Answer:

void checkRandomEven(int num, int lower, int upper)

{

int a=num;

int min=lower;

int max=upper;

for(int i=0;i<=a;i++)

 {

       System.out.println(Math.random()*(max - min) + min)

 }

}

Similar questions