Created
October 15, 2018 02:17
-
-
Save maxjing/b04627f4817191606f0ae67e69e1a8b7 to your computer and use it in GitHub Desktop.
#java
This file contains hidden or 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
private static final long SEED = 2873123; | |
private static final Random RANDOM = new Random(SEED); | |
RANDOM.nextInt(3) | |
//result will be one of 0,1,2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment