/GeneratePinCodes

Java library to generate a batch of 1000 randomly pin codes

Primary LanguageJava

GeneratePinCodes

Java library to generate a batch of 1000 randomly pin codes

Requirement

  • Create a library which generates a batch of 1000 randomly generated pin codes.
  1. each pin code in the batch needs to be unique.
  2. the pin code cannot have two consecutive numbers which are the same, e.g. 1186,8229,or 5188
  3. the pin code cannot have three consecutive numbers which are sequential, e.g. 5123,4562