CBSE Class 12 Computer Science Question 22 of 62

Using Python Libraries — Question 7

Back to all questions
7
Question

Question 7

Which of the following random module functions generates a floating point number ?

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

random()
uniform()

Reason — Random module functions random() and uniform() both return random floating point number .