Hello I just want to ask if it's possible to generate 4 digit random number and store it in eeprom.
What I want to do is to generate one random 4 digit number say "1294" and store it in eeprom so I can use the data for my code.
Lastly each time a random 4 digit number is generated , it will overwrite the one that's in eeprom.
Thank you.
I just want to ask if it's possible to generate 4 digit random number and store it in eeprom.
Yes.
But be aware that there is a write limit on EEPROM of 100,000 times. What is wrong with a normal variable?
Grumpy_Mike:
Yes.
But be aware that there is a write limit on EEPROM of 100,000 times. What is wrong with a normal variable?
I want to use the random function to store a 4 digit so I can use it as a one time password, is this possible too?
Thanks you for the reply.