Utils.randomChoice(values)
Select a random item in an array of values.
译:在一个值数组中选择一个随机项。
Arguments(参数)
values — An array of values. 译:数组的值。
print Utils.randomChoice(["a", "b", "c"]) # Output: "c"
print Utils.randomChoice(["a", "b", "c"]) # Output: "b"
print Utils.randomChoice(["a", "b", "c"]) # Output: "b"
print Utils.randomChoice(["a", "b", "c"]) # Output: "b"
print Utils.randomChoice(["a", "b", "c"]) # Output: "a"