If you shuffle a deck of cards properly

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

dasherHampton

Platinum Member
Jan 19, 2018
2,602
521
136
There's a disconnect here.

The factoid I read did not say that the same order has NEVER happened. It most certainly has.

It just ascertains that a good shuffle will LIKELY come up with a unique order. There are more unique combinations than there are atoms that make up earth.
 

sdifox

No Lifer
Sep 30, 2005
99,106
17,448
126
Your lack of trailing zeros shows your error. Trailing zeros first appear with 5! and gain in abundance as the number grows.

lol I have to pick the one calculator that gives me the wrong number... did the calc the hardway in excel and the result is

80658175170943878571660636856403766975289505440883277824000000000000
 

IronWing

No Lifer
Jul 20, 2001
72,198
32,591
136
lol I have to pick the one calculator that gives me the wrong number... did the calc the hardway in excel and the result is

80658175170943878571660636856403766975289505440883277824000000000000
Kiss, make up, and gang up on zin?
 

zinfamous

No Lifer
Jul 12, 2006
111,660
30,956
146
lol I have to pick the one calculator that gives me the wrong number... did the calc the hardway in excel and the result is

80658175170943878571660636856403766975289505440883277824000000000000

can one of you nerds punch out an R script that returns the proper answer?

asking for a friend/not homework.
 

sdifox

No Lifer
Sep 30, 2005
99,106
17,448
126
can one of you nerds punch out an R script that returns the proper answer?

asking for a friend/not homework.

I just used excel... you can write one in visual basic easily. A loop and two variables are all you need.
 

sdifox

No Lifer
Sep 30, 2005
99,106
17,448
126
googled for an answer for Ruby

class Integer
def fact
(1..self).reduce:)*) || 1
end
end
 

OccamsToothbrush

Golden Member
Aug 21, 2005
1,389
826
136
Your lack of trailing zeros shows your error. Trailing zeros first appear with 5! and gain in abundance as the number grows.

In fact if my math fu skills are still okay I think every 5 introduces another 0. Every number from 5! to 9! ends in a single 0. 10!-14! end in 00, 15!-19! would all end in 000 etc.

So 52! would have 10 trailing zeros.
 

Red Squirrel

No Lifer
May 24, 2003
69,939
13,460
126
www.anyf.ca
I find this hard to believe but the numbers don't lie so I do believe it... just seems crazy that there are that many combinations.

If you could use punch cards with the values instead of regular playing cards and shuffle those you could in theory make very strong randomly generated strings in a computer.

Now I kinda want to see a hardware RNG in a lab somewhere that turns out to just be a guy shuffling cards and putting them through a machine.

"So what do you do at work?" "I shuffle cards to make the internet more secure".
 

IronWing

No Lifer
Jul 20, 2001
72,198
32,591
136
I find this hard to believe but the numbers don't lie so I do believe it... just seems crazy that there are that many combinations.

If you could use punch cards with the values instead of regular playing cards and shuffle those you could in theory make very strong randomly generated strings in a computer.

Now I kinda want to see a hardware RNG in a lab somewhere that turns out to just be a guy shuffling cards and putting them through a machine.

"So what do you do at work?" "I shuffle cards to make the internet more secure".
WWII era cryptographic single use pads were basically made this way.
 

Tweak155

Lifer
Sep 23, 2003
11,448
262
126
No, it isnt.
Its a bullshit interpretation of statistics and probability. Its also a major logical fallacy.

Just because something CAN be different does not automatically mean it WILL be different.

And like most logical fallacies, it gets passed around a lot by ignorant people who think they're wise.

OP never said it will always be different. Try reading it closer. You do realize there is a difference between "almost certain" and "certain"? The chances are well in the favor of being different.
 
  • Like
Reactions: Homerboy

nakedfrog

No Lifer
Apr 3, 2001
61,456
17,009
136
I find this hard to believe but the numbers don't lie so I do believe it... just seems crazy that there are that many combinations.

If you could use punch cards with the values instead of regular playing cards and shuffle those you could in theory make very strong randomly generated strings in a computer.

Now I kinda want to see a hardware RNG in a lab somewhere that turns out to just be a guy shuffling cards and putting them through a machine.

"So what do you do at work?" "I shuffle cards to make the internet more secure".
Well, we've already got this.