0

cout<<rand(); why this line, always gives output 41??

24th Aug 2017, 6:39 PM
Harendra Singh
Harendra Singh - avatar
2 Answers
+ 7
Did you seed your random number generator? srand ( (size_t )time(0) );
24th Aug 2017, 7:04 PM
Babak
Babak - avatar
0
i got my ans.... when further read.. i was thinking that the random no will appear..at every run tim
24th Aug 2017, 7:06 PM
Harendra Singh
Harendra Singh - avatar