Random room number

Any suggestion on how to generate random room number (digits) only
like 82649826 from 6 to 8 digits
the room number must be unique

I need this to invite others to a match

@Mohammed We usually recommend a library like Hashids: https://hashids.org/ but it doesn’t fit the requirements you have that the room number to use for invites is numeric only.