if I have a json list e.g.
codes.json:
"code": ["code1", "code2", "code3"]
How can I randomly get a code from the list? And would it be possible that each code could only be used e.g. 4 times per minute and only 500 times in total per day?
In Javascript, of course.
Hope you can help me.
And yes: There should be more than 3 codes.