Math.random() doesn’t guarantee uniqueness. To guarantee uniqueness we must store the generated value in the database and compare against already generated values.
Previous Question Next Question
Your comments will be displayed only after manual approval.