So... show us the rest of your code (in code tags please) lets see what's going on...
Type: Posts; User: CommonTater
So... show us the rest of your code (in code tags please) lets see what's going on...
try it like this...
random = 100 + (rand() % N);
Also if you are looking for a number betteen 100 and 999 your N value should be 899. (899 + 100 = 999)