in reply to Creating an array of unique numbers
Create a list of all possible question numbers and start to perform a standard Fisher-Yates shuffle on it. You can then stop after N steps and you will have N question numbers chosen perfectly at random (and the unchosen numbers sorted after that).
- tye (but my friends call me "Tye")
|
|---|