Skip to content

Instantly share code, notes, and snippets.

View ElenaMerelo's full-sized avatar

Elena Merelo ElenaMerelo

  • Granada, Spain.
View GitHub Profile
@ElenaMerelo
ElenaMerelo / cards.md
Last active January 8, 2017 11:57
Deck of cards which can be shuffled

#Deck of cards First we pick a random card, then in the second line we shuffle the whole deck of cards, including the one chosen

((1,2,3,4,5,6,7,8,9,10,'j','q','k') X~ <♥,♦,♣,♠>).roll

((1,2,3,4,5,6,7,8,9,10,'j','q','k') X~ &lt;♥,♦,♣,♠&gt;).pick(52)