A number cannot go above 5 digits, but it can be below or equal to all digits. how to do it?
What exactly is your question, please?
Is this a constraint for an integer data entry field? Or do you want to create (calculate) a random number, between 0 and 99999?
Did you already go through the support article?