Based on that answer I was wondering how to implement this.
The goal is to have unique numbers. They have to be unique in the process not outside of it. So the recommendation was just to count.
import sys
i = iter(range(sys.maxsize))
# calling this will give you the next number
next(i)
What do you think about this approach?