Skip to content

Instantly share code, notes, and snippets.

@dha-lo-jd
Last active December 31, 2015 12:29
Show Gist options
  • Save dha-lo-jd/7986717 to your computer and use it in GitHub Desktop.
Save dha-lo-jd/7986717 to your computer and use it in GitHub Desktop.
┃━┏┃語生成
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