in reply to Re: Pick random file and print
in thread Pick random file and print
It should be said, that in this snippet the alternatives are not equally possible (unless there're two of them, of course). rand(10) is greater than 5 in approximately every other case. (Approximately because rand(10) never yields 10.)