RandomString / New Layer
Generate a new column filled with random strings. Similar to random string generation in testing libraries. Supports both fixed and variable length strings with different character set distributions. Useful for generating test data, dummy identifiers, or random tokens.
Length
oneofGenerate strings of exact length N
. Like generating fixed-length codes or identifiers where consistent length is required.
N
u32The exact length (N
) for all generated strings. Must be > 0. Examples:
8
: for standard token length4
: for short codes16
: for longer identifiers
Generate strings with random lengths between Min
and Max
(inclusive). Useful for testing with varying string lengths or generating more natural-looking random text.
Distribution
enumGenerate strings using letters and numbers (Unicode alphanumeric characters). Suitable for usernames, product codes, or identifiers supporting international characters.
Generate strings using all printable characters (including Unicode symbols and international scripts). Suitable for testing with diverse character sets or generating identifiers or passwords supporting international characters.
Seed
oneofUse system-provided randomization. Each execution produces different strings. Suitable for security-sensitive applications, generating unique tokens, or cases where true randomness is required.
Use seeded random generation for reproducible results. Like random.seed() in Python or set.seed() in R. Essential for testing and reproducible experiments. Note: Not suitable for security-sensitive applications where predictability could be a vulnerability.
Value
u64Seed value for the random number generator. Same Value
guarantees identical sequence of random strings. Should not be used for security-critical operations.
AsColumn
nameName for the new column. If not provided, the system generates a unique name. If AsColumn
matches an existing column, the existing column is replaced. The name should follow valid column naming conventions.