Re: That is not the algorithm I proposed

From: Douglas A. Gwyn (DAGwyn_at_null.net)
Date: 11/24/04


Date: Wed, 24 Nov 2004 06:57:41 -0500

Paul Tomkins wrote:
> dest[i]=source[C[i]];

Sorry, that just puts the issue of shuffling onto
the shoulders of whatever constructs the contents
of the array C. It is utterly uninteresting how
"cards" are moved around once the shuffling order
has been determined; a card can be entirely
represented by its index number, so the array C
itself already represents a shuffled deck of
cards. The important question is how to perform
a fair shuffle in the first place. In my
previous posting I assumed that context.