码迷,mamicode.com
首页 > 其他好文 > 详细

8位随机数生成

时间:2019-05-08 09:42:36      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:ring   生成   str   har   []   随机   short   ringbuf   red   

public String getRedomchar(){
String[] char1 = new String[] { "a", "b", "c", "d", "e", "f",
"g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s",
"t", "u", "v", "w", "x", "y", "z", "0", "A", "B", "C", "D", "E", "F", "G", "H", "I",
"J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V",
"W", "X", "Y", "Z"};
String[] chars = new String[] { "a", "b", "c", "d", "e", "f",
"g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s",
"t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "5",
"6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I",
"J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V",
"W", "X", "Y", "Z","!", "@", "#", "$", "%", "^", "&", "*", "(", ")",
"_", "+", "-","=","`","~",",",".","<",">","/","?",":",";","‘","\\","。","|"};
StringBuffer shortBuffer = new StringBuffer();
String ran

8位随机数生成

标签:ring   生成   str   har   []   随机   short   ringbuf   red   

原文地址:https://www.cnblogs.com/guangxiang/p/10829790.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!