📜  快速生成随机数 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:00:58.649000             🧑  作者: Mango

代码示例2
let randInt = Int.random(in: 0...100)

// The range can be a closed (a...b) or half open (a..