Module for retrieving random information from Random.org
2015.5.0 新版功能.
configuration: | This module can be used by either passing an api key and version directly or by specifying both in a configuration profile in the salt master/minion config. For example: random_org:
api_key: 7be1402d-5719-5bd3-a306-3def9f135da5
api_version: 1
|
---|
salt.modules.random_org.
generateBlobs
(api_key=None, api_version=None, **kwargs)¶List all Slack users.
参数: |
|
---|---|
返回: | The user list. |
CLI Example:
salt '*' get_integers number=5 min=1 max=6
salt '*' get_integers number=5 min=1 max=6
salt.modules.random_org.
generateDecimalFractions
(api_key=None, api_version=None, **kwargs)¶Generates true random decimal fractions
参数: |
|
---|---|
返回: | A list of decimal fraction |
CLI Example:
salt '*' random_org.generateDecimalFractions number=10 decimalPlaces=4
salt '*' random_org.generateDecimalFractions number=10 decimalPlaces=4 replacement=True
salt.modules.random_org.
generateGaussians
(api_key=None, api_version=None, **kwargs)¶This method generates true random numbers from a Gaussian distribution (also known as a normal distribution).
参数: |
|
---|---|
返回: | The user list. |
CLI Example:
salt '*' random_org.generateGaussians number=10 mean=0.0 standardDeviation=1.0 significantDigits=8
salt.modules.random_org.
generateIntegers
(api_key=None, api_version=None, **kwargs)¶Generate random integers
参数: |
|
---|---|
返回: | A list of integers. |
CLI Example:
salt '*' random_org.generateIntegers number=5 minimum=1 maximum=6
salt '*' random_org.generateIntegers number=5 minimum=2 maximum=255 base=2
salt.modules.random_org.
generateStrings
(api_key=None, api_version=None, **kwargs)¶Generate random strings.
参数: |
|
---|---|
返回: | A list of strings. |
CLI Example:
salt '*' random_org.generateStrings number=5 length=8 characters='abcdefghijklmnopqrstuvwxyz'
salt '*' random_org.generateStrings number=10 length=16 characters'abcdefghijklmnopqrstuvwxyz'
salt.modules.random_org.
generateUUIDs
(api_key=None, api_version=None, **kwargs)¶Generate a list of random UUIDs
参数: |
|
---|---|
返回: | A list of UUIDs |
CLI Example:
salt '*' random_org.generateUUIDs number=5
salt.modules.random_org.
getUsage
(api_key=None, api_version=None)¶Show current usages statistics
参数: |
|
---|---|
返回: | The current usage statistics. |
CLI Example:
salt '*' random_org.getUsage
salt '*' random_org.getUsage api_key=peWcBiMOS9HrZG15peWcBiMOS9HrZG15 api_version=1