is thar a way to just get a random number betwen 1-10 ?
cuz stuff like this would help me alot
is thar a way to just get a random number betwen 1-10 ?
cuz stuff like this would help me alot
How do I... (Level 1) Generate random numbers?
I personally use for rc =, this instead:
Code:rc = (rand() / (RAND_MAX / (max - min) + 1) + min);
Warning: Have doubt in anything I post.
GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101