For a limited time, Natural 20 (a dice rolling app) is free. This could be used to randomly select students. You can set up die to match the number of students. There are other options out there as well, but sometimes variety is good.

The program allows you to create and saved named die of different values. As an example, I set one up with 28 sides and named it "First Hour".

iTunes Link.