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 阅读(531) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 七七2020 Powered by .NET 9.0 on Kubernetes