Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to make a function to choose random things in python

import random
def deal_card():
    cards = [11,2,3,4,5,6,7,8,10,10,10,10]
    card = random.choice(cards)
    return card
 
PREVIOUS NEXT
Tagged: #function #choose #random #python
ADD COMMENT
Topic
Name
2+6 =