Dynamically exclude some numbers from randomly generated sequence

BulldogLowell:
why would that matter?

I prefer not to use dynamic memory allocation on an embedded system unless necessary. If the list of numbers to be excluded has a reasonable maximum length it is safer to allocate that list statically.