in reply to Array Shuffle
Are you saying that *none* of the elements can be in the same position as the original array? If so, then I suppose you'd have to compare the two arrays after the shuffle, and reject the shuffle if you found any two elements equal.
BTW, is this by any chance a homework problem?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Array Shuffle
by dunno260 (Novice) on Feb 28, 2006 at 05:57 UTC | |
by spiritway (Vicar) on Feb 28, 2006 at 06:07 UTC | |
by duff (Parson) on Feb 28, 2006 at 06:43 UTC |