Let say if pattern is 123456.
In php is it possible to get number exact six digits in length and digit should not repeat more than once in generated no.
456136 -- all digit are unique right
56136 -- wrong digit 4 is missing
456436 -- wrong digit 4 repeats
If you need 1-6 digits
If you need 1-9 digits
Manual