Question: using C++ language Please ASAP! 3. (8U, 2005) Random number generator is widely used in scientific researches. The C++ language itself has a random number

using C++ language Please ASAP!
using C++ language Please ASAP! 3. (8U, 2005) Random number generator is

3. (8U, 2005) Random number generator is widely used in scientific researches. The C++ language itself has a random number generator called rando, which is defined in the preprocessor directive cstdlib. This function rand generates values in range (O RAND_MAXI in a random order. However, in real applications, it is quite often that random values in a specific range are required You are asked to write a function that returns random a value in the range specified by its two parameters a and b. Your function should be declared with the header in Randn AB( inta, int b). You are then asked to call this function to generate 20 random integers of the range (min max) and put them on the terminal window. These 20 values have to be aligned into 4 rows 5 columns. The min and max are integers obtained from the keyboard provided by users. The following figure shows what you will see on the screen when you execute the program. What the range of the random numbers should be in? [min max): 45 90 62 58 72 75 57 53 89 63 70 62 81 80 51 53 82 48 68 64 45 71

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!