documentation indexreference manualfunction index

renpy.random.choice

Method: renpy.random.choice (seq):

Return a random element from the non-empty sequence seq.

Example

# return a random element from a list
$ randfruit = renpy.random.choice(['apple', 'orange', 'plum'])



documentation indexreference manualfunction index