Hi @rpetribu
Different users may use different digits discount series, 2,3,6 or 8 digits, these codes are blocked from master series of existing codes.
the solution Creating random unique IDs that do not duplicate - #2 by daniel10@daniel10 is great, however creating random numbers between start series (12000) and end series (15000) is coming out to be a problem.
Bubble is heavily dependent on long unique id of a thing which i understand is good, however in not all circumstances.
will update if i find a solution here.