0

srand(time(NULL)); cout<<1+(rand()%6);

Its output is showing differently in different compilers

14th May 2020, 8:16 AM
Karan Dewangan
Karan Dewangan - avatar
2 Réponses
+ 2
it should. It's generating a random number from 1 to 6.
14th May 2020, 9:31 AM
Gen2oo
Gen2oo - avatar