Question: english QUESTION 14 Write a method called generate, which generates n random numbers in the range [a,b], where na 3,4,1 and bare inputs to the
QUESTION 14 Write a method called generate, which generates n random numbers in the range [a,b], where na 3,4,1 and bare inputs to the method and are integers. The method displays all generated numbers on one done line and then displays "done" on next line. Note that Run example: Validation: Assume we asked the method to generate 10 random numbers in the range [1,4], then it displays shout d be less than b, otherwise, the function displays "invalid range" n should be larger than 0, otherwise, the function will by default produce 10 numbers. Method generate can be directly called from the main method TTT Arial 3 (12pt) T. Path: Words:0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
