/** * */ package com.you.demo; import java.util.Random; /** * @author Administrator * */ public class RandomNum { /** * @param args */ public static void main(String[] args) { Random rand = new Random(); System.out.println(rand.nextInt(50)+50); } }
结果:
76
时间: 2024-10-13 23:27:42