Docs edit for #18477.

pull/18539/head
Scott Butler 8 years ago
parent 96ddd29c7e
commit b5442577ce

@ -168,8 +168,7 @@ Get a random number from 1 to 100 but in steps of 10::
{{ 100 |random(1, 10) }} => 31
{{ 100 |random(start=1, step=10) }} => 51
It's also possible to initialize random number generator from seed. This way, you can create random-but-idempotent
numbers (new in version 2.3)::
As of Ansible version 2.3, it's also possible to initialize the random number generator from a seed. This way, you can create random-but-idempotent numbers::
{{ 59 |random(seed=inventory_hostname) }} * * * * root /script/from/cron

Loading…
Cancel
Save