Last active
December 31, 2015 12:29
-
-
Save dha-lo-jd/7986717 to your computer and use it in GitHub Desktop.
┃━┏┃語生成
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
import java.util.Random; | |
public class Names { | |
public static void main(String[] args) { | |
String[] src = new String[] { | |
"━", "┃", "┓", "┛", "┏", "┗", "┳", "┻", "┣", "┫", "╋", | |
}; | |
Random rnd = new Random(); | |
int length = 100; | |
for (int i = 0; i < length; i++) { | |
int n = rnd.nextInt(src.length); | |
System.out.print(src[n]); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment