随机数
基本类型 / 数字 / 整型
从字符串转换
转换为字符串
算术运算
随机数
按位运算
进制转换
整数类型之间的转换
检查溢出
int
random =
arc4random_uniform
(
3
);
//may return 0, 1 or 2 but not 3
语言
Python
C
C++
Java
C#
JavaScript
R
Rust
Golang
Delphi
PHP
Ruby
Swift
Kotlin
Lua
TypeScript
Clojure
Bash