nickmose8 / coderscat-comments

0 stars 0 forks source link

random-number-and-card-shuffling-algorithm/ #4

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Random Number and Card Shuffling Algorithm

Random numbers represent uncertainty, which is widely used in the computing world. Such as encryption keys, password generation, simulation, and games. Some classic randomized algorithms(such a...

http://coderscat.com/random-number-and-card-shuffling-algorithm/

OldMagicMan commented 3 years ago

Many years ago, a young lady where I worked was working her way through all of the 32767 Freecell games on Windows XP. She wanted to see if any didn't come out. I didn't have the heart to tell her that 32767 was a magic number buried in the standard implementation of rand().

Neither did I have the heart to mansplain that 32767 was much smaller than 52!, or that game number -1 didn't come out.