Created
August 3, 2018 02:00
-
-
Save smallsong/a8d1f7eb848aa2325f306993b9f39b00 to your computer and use it in GitHub Desktop.
获取6位随机数
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
private String getRandom() { | |
int result = (int) ((Math.random() * 9 + 1) * 100000); | |
return Integer.toString(result); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment