❔ Permut array's values
Hello, is there a convenient way to swap array values in their array, for example transforming a {1,2,3,4} into a {1,4,2,3} I dunno. Because when I think of this I believe that a need to create a copy of the first array as a reference before swapping the values, but maybe there is a better way.