MCPcopy Index your code
hub / github.com/geekcomputers/Python / shuffle

Method shuffle

classicIndianCardMatch.py:47–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 self.deck = [card(suit, rank) for suit in SUITS for rank in RANKS]
46
47 def shuffle(self):
48 random.shuffle(self.deck)
49
50 def dealCard(self):
51 return random.choice(self.deck)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected