It is the program which outputs the random number which doesn't overlap.

When making the number of PCS big too much, OS may do a stole.

MAX (1-> )
PCS(1->MAX and moreover 1-> )
Sort in the ascending orderAlert if the output ends.
Result