How does one generate integer of 8 length unique integers for CharField()
I want to use this to generate barcode id
Eg maybe a function? I have seen the uuid.uuid4
but it's too much for what I needed. or maybe there is a way to cut it down to 8 digits only?