1、生成double
Convert.toDouble(Math.round(Math.random() * 10))2、生成1-10整数
Convert.toInt(Math.round(Math.random() * 10))
posted on 2020-04-03 14:02 七七2020 阅读(537) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3