Output a shuffled deck using random input
Ruby, 89 87 characters
l=*0..51;l.map{l-=[i=l[gets(6).to_i 2]||redo];$&gt;&lt;&lt;'A23456789TJQK'[i/4]+'cdhs'[i%4]+' '}

Edit: previous version
l=*0..51;(l-=[i=l[gets(6).to_i 2]];i&amp;&amp;$&gt;&lt;&lt;'A23456789TJQK'[i/4]+'cdhs'[i%4]+' ')while l[0]