I am trying to produce a program that will record multiple students academic grade (out of 100)
and sort which student have highest avg. grade without any subject failure (which is less than 40).
for each student i have to give grade for 10 subject so i create random no generator from 0-100 and feed it to each subject(i.e 10 subject)
it produce same no. each time due to no time delay. as shown below
so i added time delay function as shown in case 2
but i added 1 sec time delay(less than that it will produce wrong o/p as seen in case1)
due to time delay of 1 second to generate 10 o/p for 1 student it takes 10 seconds(so for 1000 students it will take 10000sec which is almost 167 min)
so how to reduce this time delay or in milliseconds how i produce desired o/p…please help