I have to generate numbers in range [-100; +2000] in c++. How can I do this with rand if there is only positive numbers available? Are there any fast ways?<
Generate a random number between 0 and 2100, and subtract 100.