wu :: forums
« wu :: forums - Random Shuffling »

Welcome, Guest. Please Login or Register.
Apr 17th, 2025, 4:55pm

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   cs
(Moderators: Eigenray, ThudnBlunder, Icarus, SMQ, towr, Grimbal, william wu)
   Random Shuffling
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Random Shuffling  (Read 862 times)
hemanshu
Newbie
*





   


Gender: male
Posts: 14
Random Shuffling  
« on: Sep 19th, 2010, 7:43am »
Quote Quote Modify Modify

How to do random card shuffling without using any inbuild random function Huh
IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: Random Shuffling  
« Reply #1 on: Sep 19th, 2010, 8:03am »
Quote Quote Modify Modify

Well, you could make your own pseudo-random number generator. Or download a list of random bits from random.org and use those.
Or take a deck of cards and shuffle them by hand, then scan the result Grin
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
hemanshu
Newbie
*





   


Gender: male
Posts: 14
Re: Random Shuffling  
« Reply #2 on: Sep 19th, 2010, 9:48am »
Quote Quote Modify Modify

I have to write a c/c++ function for this
IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: Random Shuffling  
« Reply #3 on: Sep 19th, 2010, 11:37am »
Quote Quote Modify Modify

C has a random function which you can use by doing #include <stdlib.h>
If you want to compile code for a random number generator yourself, you can google for algorithms.
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Grimbal
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 7527
Re: Random Shuffling  
« Reply #4 on: Sep 20th, 2010, 1:41pm »
Quote Quote Modify Modify

There is this method.
http://xkcd.com/221/
Just do it with 52 cards.
IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: Random Shuffling  
« Reply #5 on: Sep 20th, 2010, 2:37pm »
Quote Quote Modify Modify

That only works if you want to select a random card.
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board