I want to know if there is possible to perform the following situation:

I generate numbers in a specified range with a Random object, for example:

```
Random generator = new Random(0, 100);

```

If I type `generator.next()`, I get the number `40` (for example). Now, when I type again `generator.next()`, I want to get a new random number, in the range `(0 - 39, 41 - 100)`. So I want to eliminate the generated numbers from the generator's range.

Is this possible?