Vidyalelo
Python · Q159

Module in Python

Programming · Python · question 159

Q159

Which of the following is equivalent to random.randrange(3)?

A.
range(3)
B.
random.choice(range(0, 3))
Answer
C.
random.shuffle(range(3))
D.
random.select(range(3))

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board