Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

random playing card generator python

import random


cards = ["Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"] 
suits = ["Diamonds", "Hearts", "Spades", "Clubs"]

print(random.choice(cards) + " of " + random.choice(suits))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #playing #card #generator #python
ADD COMMENT
Topic
Name
3+3 =