I want to generate a collision checked, completely unique numeric id for each model. The reason I cannot use auto incrementing id is because I don't want ids to be predictable. I also wanna avoid using UUID, but I am fine with alphanumeric id as well. I am not replacing the primary key, but I am using it get objects in my API
Something like this:
8230693489356
Or:
a435Ga256hb35
But not:
ab66e4dd-4fee-4fb3-9519-efdc20e5d792
This is not a duplicate because:
The question refered does not solve my problem, it did not solve the askers question either, there is no accepted answer.
The top answer does not create a collision checked unique id, collisions can happen
Most of the answers suggest UUID, which is not what I want.
The question simply asks for a unique id, I am asking for something specific.