Computer Science

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.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.

Python Modules

1 Like

Answer

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.

Answered By

1 Like


Related Questions