【文件属性】:
文件名称:java 随机数 Math.random
文件大小:81KB
文件格式:RAR
更新时间:2013-10-03 08:04:47
JMenuBar menuTheme
//产生随机数的类
final SuiJiShuClass sjs=new SuiJiShuClass();
final JPanel panel=new JPanel(); //初始化一个JPanel
panel.setBorder(BorderFactory.createTitledBorder("QQ:330936274")); //设置边界
final JTextField testnum1= new JTextField("请输入最小的数",10);//"文本框
final JTextField testnum2= new JTextField("请输入最大的数",10);//"文本框
final JTextField count= new JTextField("请输入打印个数",15);//"文本框
panel.add(testnum1); //增加组件到panel上
int m=(int)Math.rint(Math.random()*(parseInt2-parseInt3)+ parseInt3);
【文件预览】:
suijishu.exe
随机数使用说明.txt
网友评论
- 算法实现过于简单