🌈 搜索
📅  最后修改于: 2022-03-11 15:04:46.659000             🧑  作者: Mango
arr = [1, 2, 3, 4] arr.sample # => 3 pick random number arr.shuffle # => [3, 1, 4, 2]