\setcounter{AlgoLine}{0}
\DontPrintSemicolon
	\KwIn{A set of $n$ elements $e_1, \dots, e_n$}
	\KwResult{A permutation $p$ of the elements}
	$i \leftarrow 0 $\tcp*[r]{Number of element already chosen}
	\While{$i \neq n$}
	{Draw a random number $u$ uniformly between $1$ and $n$\\
		\If{$e_u$  is not already chosen}
		{$i \leftarrow i + 1$\\
			$p_i \leftarrow e_u$
		}
	}

