📄 newclass.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 + -