I have a question, how can i use two different sets else if statements that will work properly? i tried it normally but the second set of else if statements dont work at all. please help. thanks
Jump to Post
Theres Lots of unnecessary/uninitialized variables found in the code.
next here's the proper way of using the rand() function
/* initialize random seed: */ srand ( time(NULL) ); /* generate number ranging from 1 - 7 */ Random1 = rand() % 7 + 1;
All 9 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.