PHP or PHPUnit. Select a random option from drop down excluding selected one
<p>If my drop down has 10 options to select from, and option 4 is selected, how can I write the code to select an option from 1-10 exluding 4?</p>

<p>I know rand(1, 10) picks a random number from 1 to 10, but it sometimes can land on 4. How can I make sure that it doesn't pick the number 4, or any number that is already selected?</p>
