Cutting a deck of cards

RVic rvince99 at gmail.com
Sun May 26 14:17:36 EDT 2013


Ah, brilliant -- yes, this is so much more elegant in Python:

#now cut the cards
x = random.randrange(2,range(13 * 4 * decks))
cards = cards[x:]+cards[:x]



More information about the Python-list mailing list