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?
In reply to Re: Array Shuffle
by spiritway
in thread Array Shuffle
by dunno260
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |