priceinitialization.java
来自「蚁群算法是模仿真实的蚁群行为而提出的一种模拟进化算法」· Java 代码 · 共 26 行
JAVA
26 行
package test1;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class PriceInitialization { public PriceInitialization() { } public double[] priIn(){ double[] initPrice = new double[15]; for (int i = 0; i < 15; i++){ double aa = 10 + 100 * Math.random(); double bb = Math.round(aa); initPrice[i] = bb; } return initPrice; } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?