+ 2

What is the difference between random.choice and random.randint

5th Sep 2018, 7:55 AM
Akash
Akash - avatar
3 Respostas
+ 6
random.choice returns a random object from a list of objects. random.randint returns a random number from the specified range
5th Sep 2018, 8:21 AM
Anna
Anna - avatar
5th Sep 2018, 4:38 PM
Maninder $ingh
Maninder $ingh - avatar
+ 1
Thanks got the concept cleared
6th Sep 2018, 2:13 AM
Akash
Akash - avatar