JAVA每日总结2021.9.28

今日学习:

 

 

代码:

package MethodBasic;

public class Junzhe {
float x;
public float rand()
{
x=(45826*x+75369)%78654;
return x;

}
public static void main(String[] agrs) {
Junzhe a = new Junzhe();//用类!!
for(int i=1;i < 1000;i++) {
float s;
s= a.rand();//循环调用方法名
System.out.println(s+"");
}
}
}

 

posted @ 2021-09-28 22:41  清谦  阅读(34)  评论(0)    收藏  举报