public static void main(String[] args) { // 获取随机数 double mathRandom = (Math.random()*9 + 1) * (Math.pow(10,5)): System.out.printin(mathRandom); int resultInt = (int)mathRandom; System.out.printin(resultInt); } End!本栏目推荐文章解决 DELPHI 中执行外部命令出现屏幕一闪的问题的方法SQL Server 检测是不是数字型数据的两种方法python字符串方法引用CDN内容的方法总结方法练习方法学习 Rust 的 15 种方法Chrome 浏览器插件 V3 版本 Manifest.json 文件中 Action 的类型(Types)、方法(Methods)和事件(Events)的属性和参数解析C# 方法中的 引用参数 ref out 的使用git bash报错fatal: detected dubious ownership in repository at的解决方法