CBSE Class 12 Computer Science Question 23 of 62

Using Python Libraries — Question 8

Back to all questions
8
Question

Question 8

Which of the following random module functions generates an integer ?

  1. random()
  2. randint()
  3. uniform()
  4. all of these
Answer

randint()

Reason — Random module function randint() returns a random integer.