LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 21 Nov 2002 14:55:06 -0500
Reply-To:   Paul McDonald <pdm@SPIKEWARE.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Paul McDonald <pdm@SPIKEWARE.COM>
Subject:   Re: "Toy" SAS Problem simulates Deal of 52 Playing Cards (install ment 1)

Don't forget--that to truly simulate the shuffling of cards, that "shuffling" is not "random" (!)

Here's the process: The deck is cut into two relatively equal parts, a top half and a bottom half. They are then "shuffled" together, primarily interleaving--but sometimes two or three or perhaps even four cards from the "TOP" deck stay one-after-the-other in the final deck.

Of course, for the program you are working on, true random might well be good enough. But if you really want to hone your SAS skills, write a "shuffling" routine!

I have one if you really want it, but then what's the point of doing the exercise?

Paul D. McDonald SPIKEware, Inc. ------------------ Free SAS Tutorials and Newsletter http://www.spikeware.com/


Back to: Top of message | Previous page | Main SAS-L page