⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newclass.java

📁 基于netbeans的java桌面应用程序合集
💻 JAVA
字号:
/*
 * NewClass.java
 *
 * Created on 2007年10月27日, 下午4:04
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.Adam;

import java.util.Random;

/**
 *
 * @author Administrator
 */
public class NewClass {
        public  float seed=0;
    /** Creates a new instance of NewClass */
    public NewClass() {
    }
    public int Seed(int seed){
        Random r=new Random();
        this.seed=seed*10;
        System.out.println("  "+seed);
        return seed;
    }
    public static void main(String[] args) {
        Random r=new Random();
       System.out.println(r.nextInt(100));
       System.out.println(r.nextInt(103));
       System.out.println(r.nextInt(102));
       System.out.println(r.nextInt(101));
    /*   System.out.println(r.hashCode());
       System.out.println(r.nextInt());
       System.out.println(r.nextFloat());*/
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -