Skip to content

Random Stream

Generates a stream of random characters from customizable character sets.

Generates a stream of random characters of a specified length.

Character Sets#

You can create a custom character pool by selecting one or more of the following sets: - Numbers: 0123456789 - Lower-case Characters: abcdefghijklmnopqrstuvwxyz - Upper-case Characters: ABCDEFGHIJKLMNOPQRSTUVWXYZ - Special Characters: !@#$%^&*()-_=+[]{}|;:'",.<>?/\`~

Note: At least one character set must be enabled, otherwise the node will fail during execution.

Seeding#

The seed input controls the predictability of the random sequence: - seed = 0 (Default): A unique, non-reproducible seed is generated on each execution, resulting in a different stream every time. - seed != 0: The generator uses the provided number as a seed. Using the same non-zero seed will produce the exact same stream of characters, which is useful for getting repeatable results.

Inputs#

Port Description
Length
The total number of characters in the stream.
Numbers
Include numbers (0-9) in the character pool.
Lower-case Characters
Include lower-case characters (a-z) in the character pool.
Upper-case Characters
Include upper-case characters (A-Z) in the character pool.
Special Characters
Include special characters in the character pool. See node documentation for the full list.
Seed
Seed for the random generator. 0 for a unique seed; non-zero for a repeatable result.

Outputs#

Port Description
Random Stream
The generated stream of random characters.

ID: core/random-stream@v1