\begin{algorithm}
        \caption{Permute With All}
        \begin{algorithmic}
        \INPUT an array $A$ of length $n$
        \OUTPUT a uniform random permutation of $A$
        \FOR{$i = 1$ \TO $n$}
            \STATE swap $A[i]$ with $A[ $\CALL{Random}{$1, n$} $]$
        \ENDFOR
        \end{algorithmic}
        \end{algorithm}