Array Permutation test with 0-based index.