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?<
Can you generate a number from 0-2100 and subtract 100?