in reply to
Re: Random Derangement Of An Array
in thread
Random Derangement Of An Array
jacques
,
Is this a modified Fisher-Yates shuffle? I am too tired to tell. If it isn't, then it won't work because a shuffle is not guaranteed to generate a derangement. If it is - please explain the modification.
Cheers -
L~R
Comment on
Re^2: Random Derangement Of An Array
In Section
Seekers of Perl Wisdom