Current location - Education and Training Encyclopedia - University ranking - Luankang University
Luankang University
Import? Java . util . random;

Public? Class? D 1? {

Public? Static electricity Invalid? main(String[]? args)? {

String? Name? =? "";

String? zy? =? "";

For what? (int? Me? =? 0; ? Me? & lt? 100; ? i++)? {

Name? =? getXS();

zy? =? get job();

System.out.println ("School: xxxx University Name:"+Name+"Major:" +zy+ "Student ID:"+(I+1001));

Try it? {

thread . sleep( 100);

}? Catch? (Interrupt exception? e)? {

e . printstacktrace();

}

}

}

Public? Static electricity String? getJob()? {

String[]? arr? =? Software Engineering, Multimedia, Computer Science and Technology, Network Engineering;

Random? r? =? New? random();

Return? arr[r . nextint(3)];

}

Public? Static electricity String? getXS()? {

Random? Random = new? random(system . current time millis());

/*? 598? Hundreds of surnames? */

String[]? Last name =? {"Zhao", "Qian", "Sun", "Li", "Zhou", "Wu", "Zheng", "Wang", "Feng", "Chen", "Chu", "Wei", "Jiang", "Shen", "Han" and "Yang"

"Ta", "Lu", "Shi", "Zhang", "Kong", "Cao", "Yan", "Hua", "Jin", "Wei", "Tao", "Jiang", "Qi", "Xie", "Zou" and "Yu"

"Lu", "Wei", "Chang", "Ma", "Miao", "Feng", "Hua", "Fang", "Yu", "Ren", "Yuan", "Liu", "Tan", "Bao" and "Shi".

"Luo", "Bi", "Good", "Nothing", "An", "Chang", "Le", "Yu", "Shi", "Fu", "Pi", "Bian", "Qi", "Kang", "Wu" and "Yu"

"Mu", "Xiao", "Yin", "Yao", "Shao", "Zhan", "Wang", "Qi", "Mao", "Yu", "Di", "Mi", "Bei", "Ming", "Cang" and "Ji"

"Qu", "Xiang", "Zhu", "Dong", "Liang", "Du", "Ruan", "Lan", "Min", "Xi", "Ji", "Ma", "Qiang", "Jia", "Lu" and "Lou"

"Xu", "Qiu", "Luo", "Gao", "Xia", "Cai", "Tian", "Fan", "Hu", "Ling", "Huo", "Yu", "Wan", "Zhi", "Ke" and "Chang"

Zong, Ding, Xuan, Ben, Deng, Yu, Dan, Hangzhou, Hong, Bao, Zhu, Zuo, Shi, Cui, Ji and Button.

"Sheep", "Jade", "Hui", "Zhen", "Qu", "Jia", "Feng", "Rui", "Yi", "Chu", "Jin", "Ji", "Tai", "Mi" and so on.

"Gu", "Che", "Hou", "Mi", "Peng", "Quan", "Xi", "Ban", "Yang", "Qiu", "Zhong", "Yi", "Gong", "Ning", "and so on".

Zhan, Shu, Long, Ye, Xing, Si, Shao, Gao, Li, Ji, Pu, Yin, Su, Bai and Huai.

"Dream", "Eat", "Qiao", "Yin", "Yu", "Xu", "Neng", "Cang", "Shuang", "Wen", "Xin", "Dang", "Zhai", "Tan", "Gong" and "Lao"

"Kun", "Sang", "Gui", "Park", "Niu", "Shou", "Tong", "Bian", "Hu", "Yan", "Ji", "Park", "Shang", "Wen" and "Wen"

Official, Ai, Fish, Rong, Xiang, Gu, Yi, Jie, Ge, Liao, Yu, Zhong, Ji, Ju, Heng and Bu.

Que, Dong, Ou, Hao, He, Li, Wei, Yue, Kui, Dragon, Stone, Gong, Ji and He.

"Zeng", "Wu", "Kill", "Mo", "Yang", "Ju", "Xu", "Feng", "Nest", "Guan", "Fast", "Xiang", "Poor", "Hou", "and so on"

"Du" "Yue" "Shuai" "Gou" "Kang" "Kuang" "Tai" "You" "Qin" "Gui" "Hai" "Jin" "Chu" "Yan", "

"Ha", "Qiao", "Huang", "Year", "Love", "Yang", "Tong", "Yan", "Fu", "South", "Fire", "Iron", "Night", "Paint" and "Ground"

Shu, Mao, Hun, Zhi, Jiao, Sui, Gao, Gao, Yuan, Zhong, Cang, Bi, Bi.

"Mu", "Jing", "Fox", "Tiger", "Mei", "Resistance", "Da", "Qi", "Fold", "Mai", "Celebrate", "Guo", "He".

Lu, Gu, Zong, Bi, Wan Yi, Sima, Shangguan, Ouyang, Xiahou, Zhuge, Wen, Oriental, Helian and Huangfu.

Puyang, Spring Rain, Zen, Shu Tai, Shen Tu, Gongsun, Zhong Sun, Xuanyuan, Hu Ling, Yuwen, Sunzi, Murong, Xianyu and Hong.

South Gate, Huyan, Ziche, Zhuan Sun, Duanmu, Five Horses, Gong Xi, Qi Diao, Chezheng, Loam, Gongliang, Tuoba, Oracle Bones and Zaifu.

Liang Qiu, Zuo Qiu, East Gate, West Gate, Nangong, Fifth, Gongyi, Taishi, Zhongchang, Uncle Sun, Qu Tu, Jules, Dongxiang and Li Xiang.

Wu Qiu, Helan, Wu Qiu, Lu Wu, Dugu, Southland, Gong Bei and Wang Sun};

int? index = random . nextint(surname . length- 1);

String? Name? =? Last name [index]; ? //Get a random last name

/*? Choose one or two words from common words as names? */

if(random.nextBoolean()){

name+= get Chinese()+get Chinese();

} something else? {

name+= get Chinese();

}

Return? Name;

}

Public? Static electricity String? getChinese()? {

String? str? =? null

int? highPos,? lowPos

Random? Random? =? New? random();

highPos? =? ( 176? +? math . ABS(random . nextint(7 1)); //area code, starting from 0xA0 and starting from 16, that is, 0xb0 =11*16 =176, 16 ~ 55 first-class Chinese characters, 56 ~.

Random = new? random();

lowPos? =? 16 1? +? math . ABS(random . nextint(94)); //bit code, starting from 0xA0, from 1 to 94 columns.

byte[]? Barr? =? New? Byte [2];

Barr [0]? =? (new? Integer (high order)). byte value();

Barr [1]? =? (new? Integer (low order)). byte value();

Try it? {

str? =? New? String (Barr, GB 2312); //The position code group synthesizes Chinese characters.

}? Catch? (exception? e)? {

e . printstacktrace();

}

Return? str

}

}