I'm trying to make a generate number system where it creates a number from 001 to 999 in order where that number doesn't exist in the json file for example the json file will have the data like this
{
"001": {
"some data here": "idk"
}
}
where it doesn't add another 001 when it already exists in that json file but in order from 001 to 999 I have tried using Math.random()
to generate the number but have no idea how to create the system where it doesn't add another same number