+ 1

I used srand(time(0)) and then i used switch cases to call functions randomly.... Then i used switch(rand()%3); and then....

the cases are described as case 0: function2(); break; and so on... can i get to know why it is not ahowing functions??? if it calls randomly then how the functions are called... as they are also declared at the start

10th Jul 2018, 11:59 AM
NamVr
NamVr - avatar
7 Respuestas
0
try "srand(time(NULL))", also link to the code please
10th Jul 2018, 1:16 PM
hinanawi
hinanawi - avatar
+ 1
I will post when I would be at home
9th Nov 2018, 9:09 AM
NamVr
NamVr - avatar
0
i also included ctime...
10th Jul 2018, 12:00 PM
NamVr
NamVr - avatar
0
no
9th Aug 2018, 5:12 AM
NamVr
NamVr - avatar
0
i included everything
9th Aug 2018, 5:12 AM
NamVr
NamVr - avatar
0
without your code there isn't a lot i can do
9th Aug 2018, 6:16 AM
hinanawi
hinanawi - avatar
0
Ok, I will post for edit
9th Nov 2018, 9:08 AM
NamVr
NamVr - avatar