Created
February 5, 2020 08:03
-
-
Save steima/5f3f7beeb0d65432730ce917c2177558 to your computer and use it in GitHub Desktop.
Code Snippet for Random Code Generation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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