创建随机数

        private static String createRandom(int total) {
		
		String str = "";
		for(int i= 0; i < total; i++){
			int random = (int)(Math.random()*10);
			str += random;
		}
		return str;
	}

猜你喜欢

转载自blog.csdn.net/qq_34579060/article/details/80539761