Random access set for permutation of size of last dimension