Question: A) Write a function that takes two integer parameters and returns a random integer number between them (both inclusive). Name the function RandBetween Name the

A) Write a function that takes two integer parameters and returns a random integer number between them (both inclusive).

  • Name the function RandBetween
  • Name the parameters a and b
  • No matter if b is bigger or smaller than a, the function returns a random number between them.

B) Write a function that:

  • takes an array of integers, its length and two other integer parameters a and b
  • it fills-out the array with some random numbers between a and b, both inclusive.

If you would like, you can use your previously written function in part A) in this function. C++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!