I m looking for a function that permit me to generate a different 4 digit number (>0) each time (to 4^10 possibilities) corresponding to a parameter that will never be the same (like current timestamp)
Can you help me ?
EDIT : Explanations :
- I need to generate a 4 digit number from 0 to 9, no negative numbers
- It has to be different each time
- I dont accept collisions except if all the possibilities have already been generated
I need the generated number to be drastically different from the previous one (1234 - 5423 is accepted, but 1234 - 1235 is not)
A generation is applied whenever a user asks it (it's included in a software program), there's no time fixed between two calls to the function
RandomInteger[{1000, 9999}]
each time and be done with it. $\endgroup$