Answer the question
In order to leave comments, you need to log in
How to generate promotional codes?
Good afternoon!
Tell me, plz, how to generate promotional codes? Perhaps there is an established algorithm/service.
Requirements "standard":
Answer the question
In order to leave comments, you need to log in
1. Generate a completely random string with the desired length/character parameters
2. check if it exists in the database
3. if so, then n 1.
4. save it to the database.
You are welcome!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question