Dynamically exclude some numbers from randomly generated sequence

BulldogLowell:
Seems to lack a certain je ne sais quoi...
Oh yeah... ranbomness.

Did you miss the part about "Generate a random number in the range 100 to 197"?

If the OP doesn't care about repeats in the sequence and those three numbers were always the ones to be excluded then that technique would work. If different numbers were to be excluded you would need something like an array to detect and map them. If that list of excluded numbers can get very long (no reply about that yet) there might be memory limitations.

If the OP wants no repeats in the random permutation then a different method is needed.