![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | praveenyadav1602 |
Assume I have the following list of 52 cards:
Cards = ['club1' , 'club2', 'club3', 'club4', 'club5', 'club6','club7','club8','club9','club10' ,club11,'club12','club13','heart1', 'heart2', 'heart3', 'heart4', 'heart5', 'heart6', 'heart7',
'heart8', 'heart9','heart10', 'heart11', 'heart12','heart13', 'diamond1', 'diamond2', 'diamond3', 'diamond4', 'diamond5', 'diamond6', 'diamond7', 'diamond8',diamond9','diamond10','diamond11', 'diamond12', 'diamond13', 'spades1', 'spades2', 'spades3', 'spades4', 'spades5', 'spades6', 'spades7', 'spades8', 'spades9',
'spades10', 'spades11', 'spades12', 'spades13', ]
I want to select 13 items randomly from list at once,
What is the simplest way to retrieve items at random from this list?