java实现无符号数转换、字符串补齐、md5、uuid、随机数示例

  package com.hongyuan.test;

  import java.security.MessageDigest;

  import java.security.NoSuchAlgorithmException;

  import java.util.Random;

  import java.util.UUID;

  /*

  * 杂项(无符号数转换,字符串补齐,md5,uuid,随机数)

  */

  public class SundryTest {

  //转成无符号数

  public static Number toUnsignedNumber(Number num){

  if(num instanceof Byte){

  return (Byte)num & 0xff;

  }else if(num instanceof Short){

  return (Short)num & 0xffff;

  }else if(num instanceof Integer){

  return (Integer)num & 0xffffffffL;

  }else{

  return -1;

  }

  }

  //左补齐

  public static String leftPad(String str,String pad,int len){

  String newStr=(str==null?"":str);

  while(newStr.length()

  newStr=pad+newStr;

  }

  if(newStr.length()>len){

  newStr=newStr.substring(newStr.length()-len);

  }

  return newStr;

  }

  //右补齐

  public static String rightPad(String str,String pad,int len){

  String newStr=(str==null?"":str);

  while(newStr.length()

  newStr=newStr+pad;

  }

  if(newStr.length()>len){

  newStr=newStr.substring(0, len);

  }

  return newStr;

        http:// 23.27.118.253;

  }

  //md5

  public static String md5(String str){

  StringBuilder sb=new StringBuilder();

  try {

  MessageDigest digest = MessageDigest.getInstance("MD5");

  byte[] message=digest.digest(str.getBytes());

        http://23.27.118.254 

  for(int i=0;i

  sb.append(leftPad( //左补齐

  Integer.toHexString( //转成16进制数

  (Integer)toUnsignedNumber(message[i])), //转成无符号数

  "0",2).toUpperCase()); //转成大写

  }

  } catch (NoSuchAlgorithmException e) {

  throw new RuntimeException("不存在md5服务!");

  }

  return sb.toString();

  }

  //UUID

  public static String uuid(){

  return UUID.randomUUID().toString().replaceAll("-","").toUpperCase();

  }

  //随机数(包括min,不包括max)

  public static int random(int min,int max){

  if(min<=max){

  Random random=new Random();

  return random.nextInt(max-min)+min;

  haerbinbanjiazheng.sefkw.com;

  qiqihaerbanjiazheng.sefkw.com;

  jixibanjiazheng.sefkw.com;

  hegangbanjiazheng.sefkw.com;

  shuangyashanbanjiazheng.sefkw.com;

  daqingbanjiazheng.sefkw.com;

  yichunbanjiazheng.sefkw.com;

  jiamusibanjiazheng.sefkw.com;

  qitaihebanjiazheng.sefkw.com;

  mudanjiangbanjiazheng.sefkw.com;

  heihebanjiazheng.sefkw.com;

  suihuabanjiazheng.sefkw.com;

  daxinganlingbanjiazheng.sefkw.com;

  changchunbanjiazheng.sefkw.com;

  jilinbanjiazheng.sefkw.com;

  sipingbanjiazheng.sefkw.com;

  liaoyuanbanjiazheng.sefkw.com;

  tonghuabanjiazheng.sefkw.com;

  baishanbanjiazheng.sefkw.com;

  songyuanbanjiazheng.sefkw.com;

  baichengbanjiazheng.sefkw.com;

  yanbianchaoxianzuzizhizhoubanjiazheng.sefkw.com;

  shenyangbanjiazheng.sefkw.com;

  dalianbanjiazheng.sefkw.com;

  anshanbanjiazheng.sefkw.com;

  fushunbanjiazheng.sefkw.com;

  benxibanjiazheng.sefkw.com;

  dandongbanjiazheng.sefkw.com;

  jinzhoubanjiazheng.sefkw.com;

  yingkoubanjiazheng.sefkw.com;

  fuxinbanjiazheng.sefkw.com;

  liaoyangbanjiazheng.sefkw.com;

  panjinbanjiazheng.sefkw.com;

  tielingbanjiazheng.sefkw.com;

  chaoyangbanjiazheng.sefkw.com;

  huludaobanjiazheng.sefkw.com;

  jinanbanjiazheng.sefkw.com;

  qingdaobanjiazheng.sefkw.com;

  zibobanjiazheng.sefkw.com;

  zaozhuangbanjiazheng.sefkw.com;

  dongyingbanjiazheng.sefkw.com;

  yantaibanjiazheng.sefkw.com;

  weifangbanjiazheng.sefkw.com;

  jiningbanjiazheng.sefkw.com;

  taianbanjiazheng.sefkw.com;

  weihaibanjiazheng.sefkw.com;

  rizhaobanjiazheng.sefkw.com;

  laiwubanjiazheng.sefkw.com;

  linyibanjiazheng.sefkw.com;

  dezhoubanjiazheng.sefkw.com;

  liaochengbanjiazheng.sefkw.com;

  binzhoubanjiazheng.sefkw.com;

  hezebanjiazheng.sefkw.com;

  taiyuanbanjiazheng.sefkw.com;

  datongbanjiazheng.sefkw.com;

  yangquanbanjiazheng.sefkw.com;

  changzhibanjiazheng.sefkw.com;

  jinchengbanjiazheng.sefkw.com;

  shuozhoubanjiazheng.sefkw.com;

  jinzhongbanjiazheng.sefkw.com;

  yunchengbanjiazheng.sefkw.com;

  xinzhoubanjiazheng.sefkw.com;

  linfenbanjiazheng.sefkw.com;

  lvliangbanjiazheng.sefkw.com;

  xianbanjiazheng.sefkw.com;

  tongchuanbanjiazheng.sefkw.com;

  baojibanjiazheng.sefkw.com;

  xianyangbanjiazheng.sefkw.com;

  weinanbanjiazheng.sefkw.com;

  yananbanjiazheng.sefkw.com;

  hanzhongbanjiazheng.sefkw.com;

  yulinbanjiazheng.sefkw.com;

  ankangbanjiazheng.sefkw.com;

  shangluobanjiazheng.sefkw.com;

  shijiazhuangbanjiazheng.sefkw.com;

  tangshanbanjiazheng.sefkw.com;

  qinhuangdaobanjiazheng.sefkw.com;

  handanbanjiazheng.sefkw.com;

  xingtaibanjiazheng.sefkw.com;

  baodingbanjiazheng.sefkw.com;

  zhangjiakoubanjiazheng.sefkw.com;

  chengdebanjiazheng.sefkw.com;

  cangzhoubanjiazheng.sefkw.com;

  langfangbanjiazheng.sefkw.com;

  hengshuibanjiazheng.sefkw.com;

  zhengzhoubanjiazheng.sefkw.com;

  kaifengbanjiazheng.sefkw.com;

  luoyangbanjiazheng.sefkw.com;

  pingdingshanbanjiazheng.sefkw.com;

  anyangbanjiazheng.sefkw.com;

  hebibanjiazheng.sefkw.com;

  xinxiangbanjiazheng.sefkw.com;

  jiaozuobanjiazheng.sefkw.com;

  jiyuanbanjiazheng.sefkw.com;

  puxuchangbanjiazheng.sefkw.com;

  luohebanjiazheng.sefkw.com;

  sanmenxiabanjiazheng.sefkw.com;

  nanyangbanjiazheng.sefkw.com;

  shangqiubanjiazheng.sefkw.com;

  xinyangbanjiazheng.sefkw.com;

  zhoukoubanjiazheng.sefkw.com;

  zhumadianbanjiazheng.sefkw.com;

  wuhanbanjiazheng.sefkw.com;

  huangshibanjiazheng.sefkw.com;

  shiyanbanjiazheng.sefkw.com;

  yichangbanjiazheng.sefkw.com;

  xiangfanbanjiazheng.sefkw.com;

  ezhoubanjiazheng.sefkw.com;

  jingmenbanjiazheng.sefkw.com;

  xiaoganbanjiazheng.sefkw.com;

  jingzhoubanjiazheng.sefkw.com;

  huanggangbanjiazheng.sefkw.com;

  xianningbanjiazheng.sefkw.com;

  suizhoubanjiazheng.sefkw.com;

  enshitujiazumiaozuzizhizhoubanjiazheng.sefkw.com;

  xiantaobanjiazheng.sefkw.com;

  qianjiangbanjiazheng.sefkw.com;

  tianmenbanjiazheng.sefkw.com;

  shennongjialinqubanjiazheng.sefkw.com;

  changshabanjiazheng.sefkw.com;

  zhuzhoubanjiazheng.sefkw.com;

  xiangtanbanjiazheng.sefkw.com;

  hengyangbanjiazheng.sefkw.com;

  shaoyangbanjiazheng.sefkw.com;

  yueyangbanjiazheng.sefkw.com;

  changdebanjiazheng.sefkw.com;

  zhangjiajiebanjiazheng.sefkw.com;

  yiyangbanjiazheng.sefkw.com;

  chenzhoubanjiazheng.sefkw.com;

  yongzhoubanjiazheng.sefkw.com;

  huaihuabanjiazheng.sefkw.com;

  loudibanjiazheng.sefkw.com;

  xiangxitujiazumiaozuzizhizhoubanjiazheng.sefkw.com;

  haikoubanjiazheng.sefkw.com;

  sanyabanjiazheng.sefkw.com;

  wuzhishanbanjiazheng.sefkw.com;

  qionghaibanjiazheng.sefkw.com;

  danzhoubanjiazheng.sefkw.com;

  wenchangbanjiazheng.sefkw.com;

  wanningbanjiazheng.sefkw.com;

  dongfangbanjiazheng.sefkw.com;

  dinganxianbanjiazheng.sefkw.com;

  tunchangxianbanjiazheng.sefkw.com;

  chengmaixianbanjiazheng.sefkw.com;

  lingaoxianbanjiazheng.sefkw.com;

  baishalizuzizhixianbanjiazheng.sefkw.com;

  changjianglizuzizhixianbanjiazheng.sefkw.com;

  ledonglizuzizhixianbanjiazheng.sefkw.com;

  lingshuilizuzizhixianbanjiazheng.sefkw.com;

  baotinglizumiaozuzizhixianbanjiazheng.sefkw.com;

  qiongzhonglizumiaozuzizhixianbanjiazheng.sefkw.com;

  nanjingbanjiazheng.sefkw.com;

  wuxibanjiazheng.sefkw.com;

  xuzhoubanjiazheng.sefkw.com;

  changzhoubanjiazheng.sefkw.com;

  suzhoubanjiazheng.sefkw.com;

  nantongbanjiazheng.sefkw.com;

  lianyungangbanjiazheng.sefkw.com;

  huaianbanjiazheng.sefkw.com;

  yanchengbanjiazheng.sefkw.com;

  yangzhoubanjiazheng.sefkw.com;

  zhenjiangbanjiazheng.sefkw.com;

  taizhoubanjiazheng.sefkw.com;

  suqianbanjiazheng.sefkw.com;

  nanchangbanjiazheng.sefkw.com;

  jingdezhenbanjiazheng.sefkw.com;

  pingxiangbanjiazheng.sefkw.com;

  jiujiangbanjiazheng.sefkw.com;

  xinyubanjiazheng.sefkw.com;

  yingtanbanjiazheng.sefkw.com;

  ganzhoubanjiazheng.sefkw.com;

  jianbanjiazheng.sefkw.com;

  yichunbanjiazheng.sefkw.com;

  fuzhoubanjiazheng.sefkw.com;

  shangraobanjiazheng.sefkw.com;

  guangzhoubanjiazheng.sefkw.com;

  shaoguanbanjiazheng.sefkw.com;

  shenzhenbanjiazheng.sefkw.com;

  zhuhaibanjiazheng.sefkw.com;

  shantoubanjiazheng.sefkw.com;

  foshanbanjiazheng.sefkw.com;

  jiangmenbanjiazheng.sefkw.com;

  zhanjiangbanjiazheng.sefkw.com;

  maomingbanjiazheng.sefkw.com;

  zhaoqingbanjiazheng.sefkw.com;

  huizhoubanjiazheng.sefkw.com;

  meizhoubanjiazheng.sefkw.com;

  shanweibanjiazheng.sefkw.com;

  heyuanbanjiazheng.sefkw.com;

  yangjiangbanjiazheng.sefkw.com;

  qingyuanbanjiazheng.sefkw.com;

  dongguanbanjiazheng.sefkw.com;

  zhongshanbanjiazheng.sefkw.com;

  chaozhoubanjiazheng.sefkw.com;

  jieyangbanjiazheng.sefkw.com;

  yunfubanjiazheng.sefkw.com;

  nanningbanjiazheng.sefkw.com;

  liuzhoubanjiazheng.sefkw.com;

  guilinbanjiazheng.sefkw.com;

  wuzhoubanjiazheng.sefkw.com;

  beihaibanjiazheng.sefkw.com;

  fangchenggangbanjiazheng.sefkw.com;

  qinzhoubanjiazheng.sefkw.com;

  guigangbanjiazheng.sefkw.com;

  yulinbanjiazheng.sefkw.com;

  baisebanjiazheng.sefkw.com;

  hezhoubanjiazheng.sefkw.com;

  hechibanjiazheng.sefkw.com;

  laibinbanjiazheng.sefkw.com;

  chongzuobanjiazheng.sefkw.com;

  kunmingbanjiazheng.sefkw.com;

  qujingbanjiazheng.sefkw.com;

  yuxibanjiazheng.sefkw.com;

  baoshanbanjiazheng.sefkw.com;

  zhaotongbanjiazheng.sefkw.com;

  lijiangbanjiazheng.sefkw.com;

  simaobanjiazheng.sefkw.com;

  lincangbanjiazheng.sefkw.com;

  chuxiongyizuzizhizhoubanjiazheng.sefkw.com;

  honghehanizuyizuzizhizhoubanjiazheng.sefkw.com;

  wenshanzhuangzumiaozuzizhizhoubanjiazheng.sefkw.com;

  xishuangbannadaizuzizhizhoubanjiazheng.sefkw.com;

  dalibaizuzizhizhoubanjiazheng.sefkw.com;

  dehongdaizujingpozuzizhizhoubanjiazheng.sefkw.com;

  nujianglisuzuzizhizhoubanjiazheng.sefkw.com;

  diqingcangzuzizhizhoubanjiazheng.sefkw.com;

  guiyangbanjiazheng.sefkw.com;

  liupanshuibanjiazheng.sefkw.com;

  zunyibanjiazheng.sefkw.com;

  anshunbanjiazheng.sefkw.com;

  tongrendiqubanjiazheng.sefkw.com;

  qianxinanbuyizumiaozuzizhizhoubanjiazheng.sefkw.com;

  bijiediqubanjiazheng.sefkw.com;

  qiandongnanmiaozudongzuzizhizhoubanjiazheng.sefkw.com;

  qiannanbuyizumiaozuzizhizhoubanjiazheng.sefkw.com;

  chengdubanjiazheng.sefkw.com;

  zigongbanjiazheng.sefkw.com;

  panzhihuabanjiazheng.sefkw.com;

  泸zhoubanjiazheng.sefkw.com;

  deyangbanjiazheng.sefkw.com;

  mianyangbanjiazheng.sefkw.com;

  guangyuanbanjiazheng.sefkw.com;

  suiningbanjiazheng.sefkw.com;

  neijiangbanjiazheng.sefkw.com;

  leshanbanjiazheng.sefkw.com;

  nanchongbanjiazheng.sefkw.com;

  meishanbanjiazheng.sefkw.com;

  yibinbanjiazheng.sefkw.com;

  guanganbanjiazheng.sefkw.com;

  dazhoubanjiazheng.sefkw.com;

  yaanbanjiazheng.sefkw.com;

  bazhongbanjiazheng.sefkw.com;

  ziyangbanjiazheng.sefkw.com;

  abacangzuqiangzuzizhizhoubanjiazheng.sefkw.com;

  ganzicangzuzizhizhoubanjiazheng.sefkw.com;

  liangshanyizuzizhizhoubanjiazheng.sefkw.com;

  huhehaotebanjiazheng.sefkw.com;

  baotoubanjiazheng.sefkw.com;

  wuhaibanjiazheng.sefkw.com;

  chifengbanjiazheng.sefkw.com;

  tongliaobanjiazheng.sefkw.com;

  eerduosibanjiazheng.sefkw.com;

  hulunbeierbanjiazheng.sefkw.com;

  bayannaoerbanjiazheng.sefkw.com;

  wulanchabubanjiazheng.sefkw.com;

  xinganmengbanjiazheng.sefkw.com;

  xilinguolemengbanjiazheng.sefkw.com;

  alashanmengbanjiazheng.sefkw.com;

  yinchuanbanjiazheng.sefkw.com;

  shizuishanbanjiazheng.sefkw.com;

  wuzhongbanjiazheng.sefkw.com;

  guyuanbanjiazheng.sefkw.com;

  zhongweibanjiazheng.sefkw.com;

  lanzhoubanjiazheng.sefkw.com;

  jiayuguanbanjiazheng.sefkw.com;

  jinchangbanjiazheng.sefkw.com;

  baiyinbanjiazheng.sefkw.com;

  tianshuibanjiazheng.sefkw.com;

  wuweibanjiazheng.sefkw.com;

  zhangyebanjiazheng.sefkw.com;

  pingliangbanjiazheng.sefkw.com;

  jiuquanbanjiazheng.sefkw.com;

  qingyangbanjiazheng.sefkw.com;

  dingxibanjiazheng.sefkw.com;

  longnanbanjiazheng.sefkw.com;

  linxiahuizuzizhizhoubanjiazheng.sefkw.com;

  gannancangzuzizhizhoubanjiazheng.sefkw.com;

  xiningbanjiazheng.sefkw.com;

  haidongdiqubanjiazheng.sefkw.com;

  haibeicangzuzizhizhoubanjiazheng.sefkw.com;

  huangnancangzuzizhizhoubanjiazheng.sefkw.com;

  hainancangzuzizhizhoubanjiazheng.sefkw.com;

  guoluocangzuzizhizhoubanjiazheng.sefkw.com;

  yushucangzuzizhizhoubanjiazheng.sefkw.com;

  haiximengguzucangzuzizhizhoubanjiazheng.sefkw.com;

  lasabanjiazheng.sefkw.com;

  changdudiqubanjiazheng.sefkw.com;

  shannandiqubanjiazheng.sefkw.com;

  rikazediqubanjiazheng.sefkw.com;

  naqudiqubanjiazheng.sefkw.com;

  alidiqubanjiazheng.sefkw.com;

  linzhidiqubanjiazheng.sefkw.com;

  wulumuqibanjiazheng.sefkw.com;

  kelamayibanjiazheng.sefkw.com;

  tulufandiqubanjiazheng.sefkw.com;

  hamidiqubanjiazheng.sefkw.com;

  changjihuizuzizhizhoubanjiazheng.sefkw.com;

  boertalamengguzizhizhoubanjiazheng.sefkw.com;

  bayinguolengmengguzizhizhoubanjiazheng.sefkw.com;

  akesudiqubanjiazheng.sefkw.com;

  kezilesukeerkezizizhizhoubanjiazheng.sefkw.com;

  kashidiqubanjiazheng.sefkw.com;

  hetiandiqubanjiazheng.sefkw.com;

  yilihasakezizhizhoubanjiazheng.sefkw.com;

  tachengdiqubanjiazheng.sefkw.com;

  aletaidiqubanjiazheng.sefkw.com;

  shihezibanjiazheng.sefkw.com;

  alaerbanjiazheng.sefkw.com;

  tumushukebanjiazheng.sefkw.com;

  wujiaqubanjiazheng.sefkw.com;

  hefeibanjiazheng.sefkw.com;

  wuhubanjiazheng.sefkw.com;

  bangbubanjiazheng.sefkw.com;

  huainanbanjiazheng.sefkw.com;

  maanshanbanjiazheng.sefkw.com;

  huaibeibanjiazheng.sefkw.com;

  tonglingbanjiazheng.sefkw.com;

  anqingbanjiazheng.sefkw.com;

  huangshanbanjiazheng.sefkw.com;

  chuzhoubanjiazheng.sefkw.com;

  fuyangbanjiazheng.sefkw.com;

  suzhoubanjiazheng.sefkw.com;

  chaohubanjiazheng.sefkw.com;

  liuanbanjiazheng.sefkw.com;

  haozhoubanjiazheng.sefkw.com;

  chizhoubanjiazheng.sefkw.com;

  xuanchengbanjiazheng.sefkw.com;

  hangzhoubanjiazheng.sefkw.com;

  ningbobanjiazheng.sefkw.com;

  wenzhoubanjiazheng.sefkw.com;

  jiaxingbanjiazheng.sefkw.com;

  huzhoubanjiazheng.sefkw.com;

  shaoxingbanjiazheng.sefkw.com;

  jinhuabanjiazheng.sefkw.com;

  quzhoubanjiazheng.sefkw.com;

  zhoushanbanjiazheng.sefkw.com;

  taizhoubanjiazheng.sefkw.com;

  lishuibanjiazheng.sefkw.com;

  fuzhoubanjiazheng.sefkw.com;

  xiamenbanjiazheng.sefkw.com;

  putianbanjiazheng.sefkw.com;

  sanmingbanjiazheng.sefkw.com;

  quanzhoubanjiazheng.sefkw.com;

  zhangzhoubanjiazheng.sefkw.com;

  nanpingbanjiazheng.sefkw.com;

  longyanbanjiazheng.sefkw.com;

  ningdebanjiazheng.sefkw.com;

  taibeibanjiazheng.sefkw.com;

  gaoxiongbanjiazheng.sefkw.com;

  jilongbanjiazheng.sefkw.com;

  taizhongbanjiazheng.sefkw.com;

  tainanbanjiazheng.sefkw.com;

  xinzhubanjiazheng.sefkw.com;

  jiayibanjiazheng.sefkw.com;

  shanghaihuangpuqubanjiazheng.sefkw.com;

  shanghailuwanqubanjiazheng.sefkw.com;

  shanghaixuhuiqubanjiazheng.sefkw.com;

  shanghaichangningqubanjiazheng.sefkw.com;

  shanghaijinganqubanjiazheng.sefkw.com;

  shanghaiputuoqubanjiazheng.sefkw.com;

  shanghaizhabeiqubanjiazheng.sefkw.com;

  shanghaihongkouqubanjiazheng.sefkw.com;

  shanghaiyangpuqubanjiazheng.sefkw.com;

  shanghai闵xingqubanjiazheng.sefkw.com;

  shanghaibaoshanqubanjiazheng.sefkw.com;

  shanghaijiadingqubanjiazheng.sefkw.com;

  shanghaipudongxinqubanjiazheng.sefkw.com;

  shanghaijinshanqubanjiazheng.sefkw.com;

  shanghaisongjiangqubanjiazheng.sefkw.com;

  shanghaiqingpuqubanjiazheng.sefkw.com;

  shanghainanhuiqubanjiazheng.sefkw.com;

  shanghaifengxianqubanjiazheng.sefkw.com;

  shanghaichongmingxianbanjiazheng.sefkw.com;

  beijingdongchengqubanjiazheng.sefkw.com;

  beijingxichengqubanjiazheng.sefkw.com;

  beijingchongwenqubanjiazheng.sefkw.com;

  beijingxuanwuqubanjiazheng.sefkw.com;

  beijingchaoyangqubanjiazheng.sefkw.com;

  beijingfengtaiqubanjiazheng.sefkw.com;

  beijingshijingshanqubanjiazheng.sefkw.com;

  beijinghaidianqubanjiazheng.sefkw.com;

  beijingmentougouqubanjiazheng.sefkw.com;

  beijingfangshanqubanjiazheng.sefkw.com;

  beijingtongzhouqubanjiazheng.sefkw.com;

  beijingshunyiqubanjiazheng.sefkw.com;

  beijingchangpingqubanjiazheng.sefkw.com;

  beijingdaxingqubanjiazheng.sefkw.com;

  beijinghuairouqubanjiazheng.sefkw.com;

  beijingpingguqubanjiazheng.sefkw.com;

  beijingmiyunxianbanjiazheng.sefkw.com;

  beijingyanqingxianbanjiazheng.sefkw.com;

  tianjinhepingqubanjiazheng.sefkw.com;

  tianjinhedongqubanjiazheng.sefkw.com;

  tianjinhexiqubanjiazheng.sefkw.com;

  tianjinnankaiqubanjiazheng.sefkw.com;

  tianjinhebeiqubanjiazheng.sefkw.com;

  tianjinhongqiaoqubanjiazheng.sefkw.com;

  tianjintangguqubanjiazheng.sefkw.com;

  tianjinhanguqubanjiazheng.sefkw.com;

  tianjindagangqubanjiazheng.sefkw.com;

  tianjindongliqubanjiazheng.sefkw.com;

  tianjinxiqingqubanjiazheng.sefkw.com;

  tianjinjinnanqubanjiazheng.sefkw.com;

  tianjinbeichenqubanjiazheng.sefkw.com;

  tianjinwuqingqubanjiazheng.sefkw.com;

  tianjinbaodiqubanjiazheng.sefkw.com;

  tianjinninghexianbanjiazheng.sefkw.com;

  tianjinjinghaixianbanjiazheng.sefkw.com;

  tianjinjixianbanjiazheng.sefkw.com;

  zhongqingwanzhouqubanjiazheng.sefkw.com;

  zhongqingfulingqubanjiazheng.sefkw.com;

  zhongqingyuzhongqubanjiazheng.sefkw.com;

  zhongqingdadukouqubanjiazheng.sefkw.com;

  zhongqingjiangbeiqubanjiazheng.sefkw.com;

  zhongqingshapingbaqubanjiazheng.sefkw.com;

  zhongqingjiulongpoqubanjiazheng.sefkw.com;

  zhongqingnananqubanjiazheng.sefkw.com;

  zhongqingbeibeiqubanjiazheng.sefkw.com;

  zhongqingwanshengqubanjiazheng.sefkw.com;

  zhongqingshuangqiaoqubanjiazheng.sefkw.com;

  zhongqingyubeiqubanjiazheng.sefkw.com;

  zhongqingbananqubanjiazheng.sefkw.com;

  zhongqingqianjiangqubanjiazheng.sefkw.com;

  zhongqingchangshouqubanjiazheng.sefkw.com;

  zhongqingjiangjinqubanjiazheng.sefkw.com;

  zhongqinghechuanqubanjiazheng.sefkw.com;

  zhongqingyongchuanqubanjiazheng.sefkw.com;

  zhongqingnanchuanqubanjiazheng.sefkw.com;

  zhongqingqijiangxianbanjiazheng.sefkw.com;

  zhongqingtongnanxianbanjiazheng.sefkw.com;

  zhongqingtongliangxianbanjiazheng.sefkw.com;

  zhongqingdazuxianbanjiazheng.sefkw.com;

  zhongqingrongchangxianbanjiazheng.sefkw.com;

  zhongqingbishanxianbanjiazheng.sefkw.com;

  zhongqingliangpingxianbanjiazheng.sefkw.com;

  zhongqingchengkouxianbanjiazheng.sefkw.com;

  zhongqingfengduxianbanjiazheng.sefkw.com;

  zhongqingdianjiangxianbanjiazheng.sefkw.com;

  zhongqingwulongxianbanjiazheng.sefkw.com;

  zhongqingzhongxianbanjiazheng.sefkw.com;

  zhongqingkaixianbanjiazheng.sefkw.com;

  zhongqingyunyangxianbanjiazheng.sefkw.com;

  zhongqingfengjiexianbanjiazheng.sefkw.com;

  zhongqingwushanxianbanjiazheng.sefkw.com;

  zhongqingwuxixianbanjiazheng.sefkw.com;

  zhongqingshizhutujiazuzizhixianbanjiazheng.sefkw.com;

  zhongqingxiushantujiazumiaozuzizhixianbanjiazheng.sefkw.com;

  zhongqingyouyangtujiazumiaozuzizhixianbanjiazheng.sefkw.com;

  zhongqingpengshuimiaozutujiazuzizhixianbanjiazheng.sefkw.com;

  xianggangzhongxiqubanjiazheng.sefkw.com;

  xianggangwanziqubanjiazheng.sefkw.com;

  xianggangdongqubanjiazheng.sefkw.com;

  xianggangnanqubanjiazheng.sefkw.com;

  xianggangyoujianwangqubanjiazheng.sefkw.com;

  xianggangshenshui埗qubanjiazheng.sefkw.com;

  xianggangjiulongchengqubanjiazheng.sefkw.com;

  xiangganghuangdaxianqubanjiazheng.sefkw.com;

  xianggangguantangqubanjiazheng.sefkw.com;

  xianggangquanwanqubanjiazheng.sefkw.com;

  xianggangkuiqingqubanjiazheng.sefkw.com;

  xianggangshatianqubanjiazheng.sefkw.com;

  xianggangxigongqubanjiazheng.sefkw.com;

  xianggangdapuqubanjiazheng.sefkw.com;

  xianggangbeiqubanjiazheng.sefkw.com;

  xianggangyuanlangqubanjiazheng.sefkw.com;

  xianggangtunmenqubanjiazheng.sefkw.com;

  xiangganglidaoqubanjiazheng.sefkw.com;

  }else{

  throw new IllegalArgumentException("无法处理一个不合法的数字区间!");

  }

  }

  public static void main(String[] args){

  System.out.println("MD5(123456):"+md5("123456"));

  System.out.println("UUID:"+uuid());

  System.out.println("随机数:"+random(1,100));

  }

你可能感兴趣的:(java实现无符号数转换、字符串补齐、md5、uuid、随机数示例)