4 ms·
Seriously, why wouldn't you just use a local RNG? Do you realize it's actually less work than reading API documentation?
by hurin 11y ago
Seriously, why wouldn't you just use a local RNG? Do you realize it's actually less work than reading API documentation?
- crobertsbmw 11y agoConsider it a bad Rube Goldberg Machine.
- deleted 11y ago[deleted]
- deleted 11y ago[deleted]
- hurin 11y agonumbers = ['2','3','4','5','6','7','8','9','10','J','K','Q','A'] suits = ['CLUBS', 'SPADES', 'HEARTS', 'DIAMONDS'] deck = [(num,suit) for num in numbers for suit in suits] random.shuffle(deck) draw_card = lambda deck: deck.pop()