You are here : python_3randomrandomchoice

random.choice() - random

Return a random element from the non-empty sequence seq. If seq is empty,
raises IndexError.


Syntax

random.choice(seq)


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference