Given a positive integer $N$, I know how to generate any number of random integers in the range $[0, N]$, but I want to know, given a positive integer $n$, how to generate $n