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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
LengthLength of the return stringRobin.Numeric
Yes
LettersLetters to useRobin.String
Yes
CaseUpper, lower or both cases to useRobin.String
Yes
Use numericsIf the parameter value is True, then digits will be used during generation. Default false.Robin.BooleantrueNo
Use symbolsSpecial symbols is included if checked. The symbols are: (` ~ ! @ # № $ % ^ & * ( ) _ - + = { } [ ] | : ; » „ < > , . ? /). Default false.Robin.BooleantrueNo
Exclude SymbolsList of characters to be excluded from generation. The list should be presented as a character string without delimiters.Robin.String
No
Results
ResultString 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

  1. Create a text variable where the "Get random string" action result will be written into.

  2. Move the "Get random string" action to the workspace and set its parameters.

  3. Move the "Show message" action to the workspace and set its parameters.


  4. Click "Start" in the top panel to start the robot.

Result

The output is a dialogue window with a random string.

  • Нет меток