Java简易随机数生成 下载完请输入测试代码 publicstaticvoidmain(String[]args){ System.out.println(random(50,100));//example System.out.println(random(50.0,100.0)); }