Home / MCQ Bank / Computer
Computer File Input Output

Which is the correct way to generate numbers between minimum and maximum(inclusive)?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • minimum + (rand() % (maximum - minimum + 1))

Related Computer Questions

Which of the following is the valid string method? Running multiple programs at the same time is called: Which of the following statements are correct about Catch handler? i. It must be placed immediately after the try block ii. It can have more than one parameters iii. There must be one and only one catch handler for every try block iv. There can be multiple catch handler for a try block v. General catch handler can be kept anywhere after try block. Prior to which version of PHP did constructors took the name of the enclosing class. Which storage device has the largest capacity in MB's?