package com.dahaiwuliang.code.utils; import java.util.Random; public class StringUtils001 { public static String genSixReandom(){ Random random = new Random(); String result = ""; for(int i= 0 ; i<6; i++){ result +=random.nextInt(10); } return result; } }
java 生成六位随机数
最新推荐文章于 2024-07-10 02:46:10 发布