Skip to content

Instantly share code, notes, and snippets.

@steima
Created February 5, 2020 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steima/5f3f7beeb0d65432730ce917c2177558 to your computer and use it in GitHub Desktop.
Save steima/5f3f7beeb0d65432730ce917c2177558 to your computer and use it in GitHub Desktop.
Code Snippet for Random Code Generation
public class RandomCode {
public static final String EXISTING_CODES[] = { "12345", "54321", "11111", "22222", "33333", "44444" };
public static void main(String args[]) {
// TODO generate random code
// TODO check if random code is unique
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment