util.random.choice
choice
Return a random item from the list lst
.
def util.random.choice(
lst: list = None, # Required
):
Returns a list element, which could be any type.
Example:
# foo is 1, 2, or 3
foo = util.random.choice(lst=[1,2,3])
Return a random item from the list lst
.
def util.random.choice(
lst: list = None, # Required
):
Returns a list element, which could be any type.
Example:
# foo is 1, 2, or 3
foo = util.random.choice(lst=[1,2,3])