Melatonin@lemmy.dbzer0.com to Autism@lemmy.world · 4 months agoSeven standard "riffle" shuffles are needed to effectively randomize a 52-card deck.message-squaremessage-square26linkfedilinkarrow-up185arrow-down12
arrow-up183arrow-down1message-squareSeven standard "riffle" shuffles are needed to effectively randomize a 52-card deck.Melatonin@lemmy.dbzer0.com to Autism@lemmy.world · 4 months agomessage-square26linkfedilink
minus-squaremindbleachlinkfedilinkarrow-up1·4 months 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.