I was thinking of trying to make a couple classic card games in Pico-8 (starting with war) so here is my best attempt at making a shuffled deck: 72 characters
Feel free to use it if you think it's interesting.
'd' is the shuffled deck, I usually use the label 's' for start/setup loop.
d={}for i=1,52do::s::x=rnd(52)\1+1 if(d[x]==nil)d[x]=i%13else goto s end