Get random string Version 5 (Java)
Action group: Text
Description
The action returns a randomly generated string based on the given parameters.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Length | Length of the return string | Robin.Numeric | Yes | |
Letters | Letters to use | Robin.String | Yes | |
Case | Upper, lower or both cases to use | Robin.String | Yes | |
Use numerics | If the parameter value is True, then digits will be used during generation. Default false. | Robin.Boolean | true | No |
Use symbols | Special symbols is included if checked. The symbols are: (` ~ ! @ # № $ % ^ & * ( ) _ - + = { } [ ] | : ; » „ < > , . ? /). Default false. | Robin.Boolean | true | No |
Exclude Symbols | List of characters to be excluded from generation. The list should be presented as a character string without delimiters. | Robin.String | No | |
Results | ||||
Result | String variable containing the generated text. | Robin.String |
Special conditions of use
Used: A-Z, a-z, А-Я, а-я, 0-9, space and ` ~ ! @ # № $ % ^ & * ( ) _ - + = { } [ ] \ | : ; " ' < > , . ? /
Example of use
Task
Get a random string (English alphabet, numbers, upper case) and display the result in a dialog window.
Solution
Use the "Get random string", "Show message" actions.
Implementation
- Create a text variable where the "Get random string" action result will be written into.
- Move the "Get random string" action to the workspace and set its parameters.
- Move the "Show message" action to the workspace and set its parameters.
- Click "Start" in the top panel to start the robot.
Result
The output is a dialogue window with a random string.
Обзор
Инструменты контента