Create Random Text
Verb: createRandomText
Available from: <Standard>
Creates a random text with a length defined by the Minimum length and Maximum length parameters.
Syntax
createRandomText [--useuppercaseletters(Boolean)] [--uselowercaseletters(Boolean)] [--usedigits(Boolean)] [--usesymbols(Boolean)] --minimumlength(Numeric) --maximumlength(Numeric) (String)=value
Inputs
Script | Designer | Required | AcceptedTypes | Description |
---|---|---|---|---|
--useuppercaseletters | Use uppercase letters (A-Z) | Optional | Boolean | When enabled, allows the use of uppercase letters in text creation. |
--uselowercaseletters | Use lowercase letters (a-z) | Optional | Boolean | When enabled, allows the use of lowercase letters in text creation. |
--usedigits | Use digits (0-9) | Optional | Boolean | When enabled, allows the use of digits (0-9) in text creation. |
--usesymbols | Use symbols (, . <> ? ! + - _ # $ ^) | Optional | Boolean | When enabled, allows the use of symbols (special characters) in text creation. |
--minimumlength | Minimum length | Required | Number | Minimum amount of characters in the text. |
--maximumlength | Maximum length | Required | Number | Maximum amount of possible characters in the text. |
Outputs
Script | Designer | AcceptedTypes | Description |
---|---|---|---|
value | Text | Text | Returns the text created randomly based on the criteria defined in the input parameters. |
Example
Creates random text from 4 to 10 characters long, which can have uppercase, lowercase letters, symbols, and digits.
defVar --name textRandom --type String
//Create a random string between 4 and 10 characters, containing uppercase, lowercase letters, symbols and digits.
createRandomText --useuppercaseletters --uselowercaseletters --usedigits --usesymbols --minimumlength 4 --maximumlength 10 textRandom=value
logMessage --message "${textRandom}" --type "Info"
The results contained in the examples vary depending on the execution of the command.