🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #2339

Shuffling algorithm.

#2339
From: Clarence Regis Wilson
Date: Wed, 21 Feb 1990 02:29
35 lines
1883 bytes
	   Hi.	I'm sorry if this is not the right group to post
	   this, but I am new to the net.  Could anybody please send
	   me via e-mail a good, reasonably fast, efficient card
	   shuffling algorithm?

	   Psuedocode would be welcomed as would source code in
	   FORTRAN or Pascal (I don't understand C yet).  Even if you
	   can't give me any substance, at least a short description
	   would be fine.

	   I am trying to write a card game of Hearts just for the
	   heck of it, and I will probably write it in Pascal for the
	   sheer beauty and excellent data structures possible.

	   Oh, forgot to mention: If you have a good formula/
	   algorithm for psuedo-random numbers, I would I also
	   appreciate that.

	   Thank you for your time, and thank you in advance for any
	   help.

	   I have no idea what my outside address is, but I'm sure if
	   you use the built in reply command, I should get it.


	   T. Pascal
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    "Reg-- whatever it is, there's a book written about it."  -Lee Kaplan
    "There will always be prayer in school as long as there are final
     exams" -Unknown
    "Now it's my turn in the barrel, huh?" -C. Regis Wilson
    "I don't like your .sig either." -Someone's .sig
    "Here she comes." "No, she's just breathing hard." -My boss and I
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <78699@tiger.oxy.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!oxy!t_pascal

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!oxy!t_pascal
From: t_pascal@oxy.edu (Clarence Regis Wilson)
Newsgroups: comp.sources.bugs,comp.sources.d,comp.sources.games.bugs
Subject: Shuffling algorithm.
Message-ID: <78699@tiger.oxy.edu>
Date: 21 Feb 90 02:29:35 GMT
Distribution: na
Organization: Occidental College, Los Angeles, CA  90041
Lines: 35