I tried the following
int number = ThreadLocalRandom.current().nextInt(1000, 9999 + 1);
But it won't generate 4 digit numbers like 0004,0035 and so on...
I searched for similar questions but none solved, they were different from what I need, if there's already an existing question please let me know.
I need no genarate numbers like 1485 and 0180, not only numbers starting with 0.