package com.demo.test1; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; import java.util.regex.Matcher; import java.util.regex.Pattern; public class HighArray { private final static int OFFSET = 538309; public static
import java.util.UUID; /** * 通过UUID随机生成36位.32位唯一识别码(唯一字符串) * @author [J.H] * */ public class Test { public static void main(String[] args) { int i = 0; while (i<10) { String a = UUID.randomUUID().toString(); System.out.println(a); System.out.println(
package java05; import java.util.Random; /* Random随机生成一个数字 1.导包: import java.util.Random; 2.创建 Random r = new Random(); 3.使用 int num = r.nextInt()不带参数是随机生成一个数字在int所有范围内 int num = r.nextInt(n); 带参数代表范围,左闭右开 * */ public class DemoRandomnum { public sta