Generate random TCP or UDP-style port numbers inside a chosen range with optional uniqueness.
Adjust the range and generate a set of random ports.