CBSE Class 11 Computer Science
Question 1 of 63
Introduction to Python Modules — Question 1
Back to all questions 1
Question Assertion (A): The random module is a built-in module to generate pseudorandom variables.
Reasoning (R): The randrange() function is used to generate a random number between the specified range in its parameter.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
Both A and R are true but R is not the correct explanation of A.
Explanation
The random module is a built-in module used to generate pseudorandom floating point values. The randrange() method generates a random integer number between its lower and upper argument.