如何随机生成一个16进制数?
生成的10进制数、转换成16进制inta=newjava.util.Random().nextInt(1000);Stringhex=Integer.toHexString(a);System.out.println(a+"->"+hex);