Consider the set of all permutations $i_{1} i_{2} \ldots, i_{n}$ of $1,2, \ldots, n$ such that $i_{k} \neq k$ for $k=1,2, \ldots, n .$ (Such permutations are called derangements and are discussed in Chapter 6.) Describe an algorithm for generating a random derangement (modify the algorithm given in Section $4.1$ for generating a random permutation).