Este artículo se trata principalmente de Java Generación aleatoria de códigos para nombres, números de teléfono móvil y dirección. Si me preguntas qué es, no lo sé, solo practica.
Generar los datos de prueba al azar
import java.util.hashmap; import java.util.map;/*** Genere al azar el nombre chino, género, correo electrónico, número de teléfono móvil, dirección* @author x-rapido*/public randomvalue {public static string base = "abcdefghiJklmnopqrstuvwxyz0123456789"; privado static string = "string string =" string string string string = "string string string =" string string. Qiansun Li Zhou Wu Zheng Wang Feng Chen Chu Wei Jiang Shen Han Yang Zhu Qin You Xu He Lu Shi Zhang Cao Yan Hua Jin Wei Tao Jiang Qi Xie Zou Yu Bo Water Dou Zhang Yun Su Pan Ge Xi Fan Peng Lang Lu Wei Chang Ma Miao Feng Flower Fang Yu Yuan Liu Feng Bao Shi Tang fei lian cen xue lei cong ni tang teng yin luo bi hao wu un tiempo a menudo feliz fu pi bian qi kang wu yu yuan bu gu Mengping Huang y mu xiao yin yao shao zhan wang qi mao yu di mi bei ming plan Liang du ruan lan min xi ji maqiang jia lu lu jiang child face guo mei diario diario zhong xu qiu luo gao xia cai tian fans hu ling hu wan rama ke jiu gerente lu mo jing qiu mi wang jian qiN No gong cheng ji xing hua pei lu rong weng xunyang yu zhen wei geng wei geng yi chu jin jin songjing duan fu wu wu jiao mu wei Valley Car Hou mi peng quan xi ban yang qiu zhong yi palacio qiu lunfeng li rong zu wiug jian jiAN jiAng jiAng jiAns Zhan Shu Long Ye Xun Si Shao Gao Li Ji Thin Seal Su Bai Huai Putai from E Suo Xian Zhi Lai Zhuo Lin Tu Meng Chi Qiao Yin Yu Xu can be heard from the two sides of the Communist Party of China, Zhai Tan Gong, and Ji Shen, and the army was blocked by the leaders of the leaders of the Communist Party of China, Li Yong, and the army was surrounded by Yan Ji, Ji Pu, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, y el país se llevó a cabo en Yan Ji, y el país se llevó a cabo en Yan Ji, y el país se llevó a cabo en Yan Ji, y el país se llevó a cabo en Yan Ji, y el país se llevó a cabo en Yan Ji, y el país se celebró en Yan Ji, y el país fue retenido en Yan Ji, y el país se celebró en Yan Ji, y el país se celebró en Yan Ji, y el país fue retenido en Yan en Yan en Yan en Yan, y se celebró en Yan en Yan en Yan en Yan, y se celebró en Yan en Yan Ji en Yan, y se celebró en Yan en Yan Ji en Yan en Yan, y se celebró en Yan Ji en Yan en Yan en Yan. Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the country was held in Yan Ji, and the Gongyang Dantai Gongye Zongzheng Puyang Chunyu Zhongsun Taishu Shentu Gongsun Lezheng Xuanyuan Linghu Zhongli Luqiu Changsun Murong Xian Yu Yuwen Situ Sikong Qi Sui Kou Jin Supervisor Ziche Zhuansun Duanmu Wu Ma Gong Western lacquer Diao Le Zhengran Sigongliang Tuoba Jiagu Zaifu Gu Gu Liang jin chu yan fa ru yan tuoqin duan gan baili dongguo nanmen hu yan gui hai yang tong wei xiaosheng yue shuai kangkuang después de qin liangqiu le qiu donggu East Gate West shang Shang Shang Mou yi bo admite admiros moha qiao hu yan aiyang aiyang aiyang cift. private static String girl="Xiujuan, wise, wise, gentle, gentle, gentle, gentle, gentle, gentle, elegant, jade, red, beautiful, fragrant, sweet, spring chrysanthemum, feng, pure, pure, lotus, true ring, snow, love sister, fragrant, fragrant, moon, oriole, beautiful, wonderful, wonderful, wonderful, wonderful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful, beautiful boy="weigang, brave, brave, strong army, strong army, and strong army, and bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, bright, brillante, brillante, brillante, luminoso, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, camión chule, construcción chulosa, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, camino de la ruta chule, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, camino de la ruta más brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, brillante, camino chule. Zunyi Road, Xiangtan Street, Ruijin Square, XiAnshan Street, XiAnshan East Road, XiAnshan West Building, Baishahehe Road, Zhaohong Square, Airport Road, Minhang Street, Changcheng South Road, Liuting Interchange, Hongqiao Square, Great Wall Build Street, Xiucheng Road, Hecheng Building, Jincheng Square, Chongyang Street, Huacheng Road, Kangcheng Street, Zhengyang Road, Heyang Square, Zhongcheng Road, Jiangcheng Building, Shuncheng Road, Ancheng Street, Shancheng Square, Cangegeng, Road, Road, Street, Street, Deyang Road, Carretera, CHUNYANG STREET, CHUNYANG STREET, CHUNYANG STORE Road, Shuoyang Street, Qingwei Expressway, Ruiyang Street, Fenghai Road, Shuangyuan Building, Xifu Town Street, Xiazhuang Street, Gumiao Industrial Park, Zhongshan Street, Taiping Road, Guangxi Street, Weixian Square, Boshan Build Road, Heze Three Buildings, Guanhai Second Square, Guangxi Branch Street, Guanhai One Road, Jining Branch Street, Juxian Road, Pingdu Square, Mingshui Road, Mengyin Building, Qingdao Road, Hubei Street, Jiangning Square, Tancheng Street, Tianjin Road, Baoding Street, Anhui Road, Hebei Building, Huangdao Road, Beijing Street, Xinxian Road, Jinan Street, Ningyang Square, Rizhao Street, Dexian Road, Xintai Building, Haze Road, Shanxi Square, Yishui Road, Feicheng Street, Lanshan Road, Sifang Street, Pingyuan Square, Sishui Build Branch Road, Xilingxia One Building, Taixi Weiyi Square, Taixi Weiyi Square, Taixi Weiyi Street, Taixi Weiyi Street, Taixi Weiyi Street, Xilingxia Second Street, Xilingxia Third Street, Taixi Weiyi Street, Taixi Weiyi Street, Taixi Weiyi Street, Taixi Weiyi Street, Taixi Weiyi Street, Tuandao Second Road, Tuandao 1st Street, Taixi 3rd Road, Taixi 1st Building, Yuncheng South Road, Tuandao 3rd Street, Liujiaxia Road, Tibet 2nd Street, Tibet 1st Square, Taixi 4th Street, Sanmenxia Road, Chengwu Branch Building, Hongshanxia Road, Yuncheng North Square, Longyangxia Road, Xilingxia Street, Taixi 5th Road, Tuandao 4th Street, Shicun Square, Wuxia Building, Sichuan Road, Shouzhang Street, Jiaxiang Road, Nancun Square, Fanxian Road, Xikang Street, Yunnan Road, Juye Building, Xijiang Square, YutaThen Street, Shanxian Road, Dingta Street, Tengxian Road, Tengxian Build Edificio Wenshang, Chaocheng Road, Ziyang Street, Zouxian Square, Pu County Street, Cishan Road, Wenshui Street, Tibet Road, Chengwu Building, Tuandao Road, Nanyang Street, Guangzhou Road, Dongping Street, Zaozhuang Square, Street, Street, Feixian Road, Nanhai Build Yan'an First Street, Signal Mountain Road, Xing'an Branch Street, Fushan Branch Square, Hongdao Branch Building, Laiwu 2nd Road, Wuxian 1st Street, Jinkou 3rd Road, Jinkou 1st Square, Fulongshan Road, Yushan Branch Street, Guanxiang 2nd Road, Wuxian 2nd Square, LAIWU SLEE Street, Hengshan Road, Yushan Square, Yexian Road, Fushan Building, Hongdao Road, Changzhou Street, University Square, Longhua Street, Qihe Road, Laiyang Street, Huangxian Road, Zhangdian Building, Zuoshan, Street, Street, Huashan Road, Fulong Street, Jiangsu Store, Longjiang Street, Build, Street, Street, Street, Street, Street, Build Qidong Road, Jingshan Square, Longshan Road, Mouping Street, Yan'an Third Road, Yanji Street, Nanjing Square, Donghai East Building, Yinchuan West Road, Haikou Street, Shandong Road, Shaoxing Square, Zhiquan Road, Dongghai Middle Road, Ningxia Road, Hong Kong West Building, Longde Square, Yangzhou Street, Yunyang Street, Yunyan Street, Yunyan Taipingjiao 1st Street, Ningguo Second Branch Road, Taipingjiao 2nd Square, Tiantai East Road, Taipingjiao 3rd Building, Zhangzhou Road, Zhangzhou Street 2, Ningguo First Square, Taipingjiao Sixth Street, Taipingjiao Fourth Road, Tiantai East Second Street, Taipingjiao Fifth Road, Ningguo Third Building, Macau Third Road, Jiangxi Branch Street, Macau Second Road, Ningguo Fourth Street, Dayao Yi Square, Xianyang Branch Street, Hongzehu Road, Wuxing Second Building, Chenghai Third Road, Tiantai One Square, Xinzhan Second Road, Sanming North Street, Xinzhan Branch Road, Zhanshan Fifth Street, Taizhou Third Square, Zhanshan Fourth Building, Minjiang Third Road, Macau Fourth Street, Nanhai Branch Road, Wuxing Third Square, Sanming South Road, Zhanshan Second Street, Erqing Xincun Town, Jiangnan Building, Wuxing First Square, Zhuhai Second Street, Jiayuguan Road, Gao Youhu Street, Zhanshan 3rd 3rd Road, Road, 6th Square, Taizhou 2nd Road, Donghai 1st Building, Tianteri 2nding, Tianteri 2nd Road, Road, Road, Road, Macais 6 Street, Dongting Lake Square, Zhuhai Branch Street, Fuzhou South Road, Chenghai 2nd Street, Taizhou 4th Road, Hong Kong Central Building, Macau 5th Road, Xinzhan 3rd Street, Macau 1st Road, Zhengyangguan Street, Ningwuguan Square, Minjiang 4th Street, Xinzhan 1st Road, Ningguo 1st Building, Wangjiamai Isla, Macao séptima Plaza, Taizhou 1st Road, Taizhou 6th Street, Dayao 2nd Road, Qingda 1st Street, Minjiang 2nd Square, Minjiang 1st Building, Pingtung Branch, Zhanshan 1st Street, Donghai West Road, XuJiama ISLAND Huggen Square, Dayao 3Rd Road, Xiaowg Street, XIAWang Road, Xiuzhan Road, Road, Road, XuJiai. Xiaoyao 3rd Building, Macau Novena Plaza, Taizhou 5th Street, Chenghai 1st Road, Macao 8th Street, Fuzhou North Road, Zhuhai 1st Square, Ningguo 2nd Road, Linhuaiguan Building, Yanerdao Road, Zijingguan Street, Wushengguan Square, Xiaoya, 1st Street, xiuzeuzhan Road, Road, xi -Road, calle 4 Street Juyongguan, Shanhaiguan Road, Poyang Lake Building, Xinzhan Road, Zhangzhou Street, Xianyou Road, Hualien Street, Yueqing Plaza, Chaohu Street, Tainan Road, Wuxing Building, Xintian Road, Fuqing Plaza, Chenghai Road, Putian Street, Haiyou Road, Zhenjiang Street, SHYIXLET, SHYIXLET, SHYIXLETLIN Edificio, Sanming Road, Yangkou Street, Peixian Road, Zhangpu Square, Da Maidao, Taiwan Street, Tiantai Road, Jinhu Building, Kaohsiung Square, Haijiang Street, Yueyang Road, Shanhua Street, Rongcheng Square, Macau Square, Wuch Road, Minjiang Road, Taipei Road, Longyan Street, xianyan Road, Ningde Road, Ningde Road, Ningde Road, Build Longquan Road, Lishui Street, Haichuan Road, Changhua Building, Jintian Road, Taizhou Street, Taihu Road, Jiangxi Street, Taixing Square, Qing Street, Jinmen Road, Nantong Building, Jingde Road, Huiquan Square, Ningguo Road, Quanzhou Street, Rudong Road, FenghuA Build, Street, Queda, Street, Building, Street, Building, Street, Street, Building, Street, Building, Street, Street, Building, Building, Street, Street, LiANDaS Huayan Road, Chiayi Street, Gutian Road, Nanping Square, Xiuzhan Road, Changing Street, Zhanshan Road, Xuzhou Building, Fengxian Square, Shantou Street, Hsinchu Road, Huanghai Street, Anqing Road, Keelung Plaza, Shaoguan Road, edificio Yunxiao, Xin'an Road, Xinju Road, Plaza, Plaza, Plaza, Plaza, Plaza, Plaza, Build Xiaowang Street, Haimen Road, Zhuhai Street, Shanghang Road, Yongjia Building, Zhangping Road, Yancheng Street, Xinpu Road, Xinchang Street, Gaotian Plaza, Market 3 Street, Jinxiang East Road, Market 2 Building, Shangghai SURCHI Guanxian Branch Plaza, Xiaogang 1 Building, Market 1 Road, Xiaogang 2 Street, Qingping Road, Guangdong Plaza, Xinjiang Road, Boping Street, Gangtong Road, Xiaogang Along the Fujian Plaza, Gaotang Street, Chiping Road, Gangqing Street, Gaomi Road, Yanggu Square, Pingyin Road, Xiajin Building, Qiuxian Road, Bohai Street, Enxian Square, Lushun Street, Tangyi Road, Licun Street, Jimo Road, Ganghua Building, Ganghua Road, Guantao Street, Puji Road, Chaoyang Street, Gansu Square, Gangxia Street, Ganglian Road, Lingxian Building, Shanghai Road, Baoshan Square, Wuding Road, Changqing Street, Chang'an Road, Huimin Street, Wucheng Square, Liaocheng Edificio, Haibo Road, Cangkou Street, Ningbo Road, Jiaozhou Square, Laizhou Road, Zhaoyuan Street, Guanxian Road, Liumaidou, Jinxiang Square, Yucheng Street, Linqing Road, Dong'a Street, Wusong Road, Dagangyan, Liaoning Road, Diwei 2 Building, Dagang Weii 1 Road, Shushuishan Road, Wudangyan, Liaoning Road, Diwei 2 Building, Dagang Weii 1 Road, Shushuishan Road, Wudangyan, Liaoning Road, Diwei 2 Building, Dagang Weii 1 Road, Shushuishan Road. Plaza, Dagang Wei 3 Street, Dagang Wei 5 Road, Dagang Wei 4 Street, Dagang Wei 4 Street, Dagang Wei 2 Road, Wudi 2 Building, Jilin Branch Road, Dagang Fourth Street, Puji Branch Road, Wudi 3 Street, Huangtai Square, Dagang Third Street, Wudi 1 Road, Shushanhan Build Road, Dalian Branch Street, Dagang Second Road, Jinzhou Branch Street, Deping Square, Gaoyuan Building, Changshan Road, Leling Street, Linyi Road, Nenjiang Square, Hejiang Road, Dalian Street, Boxing Road, Edificio Putai, Huangtai Square, Chengyang Street, Linzi Road, Anqiu Street, Linqu Road, Building, Square, Shanghege, Shanghe, Shanghe, Road, Road, Shanghe, Buildet, Buildet, Buildet, Shanghe, Buildet, Shanghe, Buildet, Buildet, Build de Rehan, Buildet, Road, Shanghege, Road, Shanghege, Build de reyang, Jiyang Road, Chengde Street, Zichuan Square, Liaobei Street, Yangxin Road, Yidu Street, Songjiang Road, Liuting Building, Jilin Road, Hengtai Street, Baotou Road, Wudi Street, Tieshan Square, Jinzhou Road, Huantai Road, Xing'an Building, Zouping Road, Jiaodong Square, Zhangkan Huayang Road, Qinghai Street, Taishan Square, Zhoucun Building, Siping Road, Taidong Seventh Street, Taidong East 2nd Road, Taidong East 7th Square, Taidong East 2nd Road, East 5th Street, Yunmen 2nd Road, Furong Village, Yan an Er Plaza, Yunmen 1st Street, Tago 4th Road, Toil Road, Toil Road, Village, Village, yangung, yunmen, yunmen 1st Street. Road, Hangzhou Branch Plaza, Inner Mongolia Road, Taitung 7th Building, Taitung 6th Road, Guangrao Branch Street, Taitung Ocho Plaza, Taitung 3rd Street, Siping Branch Road, Guokou East Street, Qinghai Branch Road, Chenyang Building, Building, Building, Caishi 2nd Road, Street 1st Street, Beizhong 3rd Road, Buhyun Branch Building, Building, Build Build Qingxiang Street, Wanshou Road, Dacheng Building, Furong Road, Licheng Square, Daming Road, Changping Street, Pingding Road, Changxing Street, Pukou Square, Zhucheng Building, Hexing Road, Desheng Street, Ninghai Road, Weihai Square, Dongshan Road, Qinghe Street, Jianggou Road, Build Shunxing Street, Lijin Road, Yangming Square, Renhe Road, Guokou Building, Yingkou Road, Changyi Street, Mengzhuang Square, Fengsheng Street, Chengkou Road, Danyang Street, Hankou Road, Taonan Building, Sangzi Road, Zhanhua Street, Shankou Road, Chenyang Street, Nankou Square, Zhenxing Street, Tonghua Road, Fusi Edificio, Yixian Road, Shouguang Square, Caoxian Road, Changle Street, Daokou Road, Nanjiushui Street, Taizhan Square, Dongguang Building, Tuofeng Road, Taiping Mountain, Biaoshan Road, Yunxi Square, Taiqing Road ".Split (", "); Cadro final estatoso privado [] email_suffix = "@gmail.com,@yahoo.com,@msn.com,@hotmail.com,@aol.com,@ask.com,@live.com,@qq.com,@0355.net,@163.com,@ 163.net,@263.net,@3721.net,@sí.net,@googlemail.com,@126.com,@sina.com,@sohu.com,@yahoo.com.cn ".split (", "); público); static int getNum (int inicio, int end) {return (int) (math.random ()* (end-start+1)+start);}/*** Regrese al correo electrónico* @param lmin longitud mínima* @param lmax longitud máxima* @return*/public static string getMail (int smin, int lMax) {int longnum (lMin, lmin, lMax; StringBuffer (); for (int i = 0; i <longitud; i ++) {int number = (int) (math.random ()*base.length ()); sb.append (base.charat (number));} sb.append (correo electrónico_suffix [(int) (int) (math.random ()*email_suffix))); return sb.Tostre (); Número móvil*/cadena estática privada [] telfirst = "134,135,136,137,138,139,150,151,152,157,158,159,130, 131,132,155,156,133,153" .Split ("); Private Static String getTel () {) {) {) index = getNum (0, telfirst.length-1); string first = telfirst [index]; string segundo = string.ValueOf (getNum (1,888) +10000) .substring (1); string thrid = strid.valueOf (getNum (1,9100) +10000) .sUnstring (1); return+thrid;}/} static String name_sex = ""; static string static private getChinesEname () {int index = getNum (0, firstName.length ()-1); String First = FirstName.substring (index, index+1); int sex = getNum (0,1); str = boy; int long = boy.lengther "femenino";} else {name_sex = "masculino";} index = getNum (0, longitud-1); string segundo = str.substring (index, index+1); int hasthird = getnum (0,1); string tercero = ""; if (Hasthird == 1) {index = getnum (0, longitud-1); tercero = str.substring (índice, índice+1); Primero+segundo+tercero;}/*** Dirección de retorno* @return*/private static string getRoad () {int index = getNum (0, road.length-1); string first = Road [index]; string segundo = string.valueOf (getNum (11,150))+"firma"; String Thirter = "-"+getnum (1,20)+"-"+getnum (1,10); primer+segundo+tercero;}/*** Encapsulación de datos* @return*/public static map getAddress () {map map = new HashMap (); map.put ("name", getChinesEname ()); map.put ("sexo", name_sex); map.put ("road", getroad (); map.put ("tel", getTel ()); mapse. "," Único ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",". getemail (6,9)); return map;} public static void main (string [] args) {for (int i = 0; i <100; i ++) {System.out.println (getAddress ()); // system.out.println (getEmailName (6,9));}}}resultado:
Resumir
Lo anterior es todo el contenido de este artículo sobre los nombres generados al azar, los números de teléfono móvil y los ejemplos de código de dirección. Espero que sea útil para todos. Los amigos interesados pueden continuar referiéndose a este sitio:
Los conceptos básicos de la programación de Java: imitando el intercambio de código de inicio de sesión del usuario
Compartir preguntas básicas de prueba de programación Java
Los conceptos básicos de la programación de redes de Java: comunicación unidireccional
Si hay alguna deficiencia, deje un mensaje para señalarlo.