Re: Algorithm for card shuffling
From: pete (pfiland_at_mindspring.com)
Date: Sun, 04 Apr 2004 23:12:16 GMT
Ben Pfaff wrote:
> pete <email@example.com> writes:
> > Ben Pfaff wrote:
> >> I also changed the type of `n'
> >> to size_t, to make sure that it can handle any array that can be
> >> allocated in a reasonable implementation. (This meant that an if
> >> statement was needed to verify v > 0.
> > But now you have i incrementing up to (n - 1), and i is of type int.
> Er, so I do. Fixed.
... and j too.