Added randomstudent function to the switch case