Melatonin@lemmy.dbzer0.com to Autism@lemmy.world · 7 days agoSeven standard "riffle" shuffles are needed to effectively randomize a 52-card deck.message-squaremessage-square21fedilinkarrow-up184arrow-down12
arrow-up182arrow-down1message-squareSeven standard "riffle" shuffles are needed to effectively randomize a 52-card deck.Melatonin@lemmy.dbzer0.com to Autism@lemmy.world · 7 days agomessage-square21fedilink
minus-squaremindbleachlinkfedilinkarrow-up1·6 days agox = new Array(52).fill(0).map( (v,i,a) => i+1 ) x.reduce( (a,b) => a + Math.log(b) ) / Math.log(2) 227.02369816459176 So it’d take 228 bits.
x = new Array(52).fill(0).map( (v,i,a) => i+1 )
x.reduce( (a,b) => a + Math.log(b) ) / Math.log(2)
227.02369816459176
So it’d take 228 bits.