let arr = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
let newArr = arr.sorted { (_, _) -> Bool in
arc4random() < arc4random()
}
print(newArr)
非常的简洁,cool~
大赞
let arr = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
let newArr = arr.sorted { (_, _) -> Bool in
arc4random() < arc4random()
}
print(newArr)
非常的简洁,cool~
大赞