Skip to content

Commit

Permalink
Update playbooks_filters.rst (ansible#74242)
Browse files Browse the repository at this point in the history
##### SUMMARY
Make the `random` filter description more clear.
  • Loading branch information
yuri1969 committed Apr 20, 2021
1 parent 5e5bfa8 commit 5f391a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docsite/rst/user_guide/playbooks_filters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ To get a random item from a list::
"{{ ['a','b','c'] | random }}"
# => 'c'

To get a random number between 0 and a specified number::
To get a random number between 0 (inclusive) and a specified integer (exclusive)::

"{{ 60 | random }} * * * * root /script/from/cron"
# => '21 * * * * root /script/from/cron'
Expand Down

0 comments on commit 5f391a7

Please sign in to comment.