chenhua1008 / GeneratePinCodes

Java library to generate a batch of 1000 randomly pin codes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Java library to generate a batch of 1000 randomly pin codes


Languages

Language:Java 100.0%