Choose a random element from a non-empty sequence.
Syntax:
{% randchoice [sequence] %}
{% randchoice [choice1 choice2 ...] %}
Return random integer in range [a, b], including both end points.
Syntax:
{% randint [a] [b] %}
Syntax:
{% random %}
Choose a random item from range(start, stop[, step]).
This fixes the problem with randint() which includes the endpoint; in Python this is usually not what you want. Do not supply the ‘int’, ‘default’, and ‘maxwidth’ arguments.
Syntax:
{% randrange [stop] [options] %}
{% randrange [start] [stop] [step] [options] %}