Brevity in a question is not neccessarily a good thing! Your question is kind of like calling up a mechanic, saying your car won't start, and asking what's wrong with it.
The thread you posted directly over, and apparently did not look at (despite it proclaiming in all capital letters "FAQ - PLEASE READ BEFORE POSTING A QUESTION") has in its first section information about the "Basic 3" the information to include when asking a question - start by providing those 3 pieces of information.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Why doesn't it work ?
Brevity in a question is not neccessarily a good thing! Your question is kind of like calling up a mechanic, saying your car won't start, and asking what's wrong with it.
The thread you posted directly over, and apparently did not look at (despite it proclaiming in all capital letters "FAQ - PLEASE READ BEFORE POSTING A QUESTION") has in its first section information about the "Basic 3" the information to include when asking a question - start by providing those 3 pieces of information.
Wayne
a=rand() % (maxvalue+1);
will give a random number from 0 to maxvalue