摘要:
方法1(数据类型)(最小值+Math.random()*(最大值-最小值+1)) 例: (int)(1+Math.random()*(10-1+1)) 从1到10的int型随数 方法2 获得随机数 for (int i=0;i<30;i++) {System.out.println((int)(1+ 阅读全文
posted @ 2016-11-05 20:50
L.P.B_Blizzard
阅读(1190)
评论(0)
推荐(0)
摘要:
/* * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /* * %W% %E% */ package Java.math; import java.... 阅读全文
posted @ 2016-11-05 20:38
L.P.B_Blizzard
阅读(595)
评论(0)
推荐(0)

浙公网安备 33010602011771号