title: C++ Random number within range with exclusion
body: <p>I want to generate random number in range from 0 to 5, but for example, in some cases I don't need number 3, I only need 0, 1, 2, 4, 5. How can I generate random number within range, but with option to exclude numbers I don't need.</p>