Added random function for student class instantiation