Operations (sample payloads)

Main operations

Random hex

Generates a random Hex. Sample Input

{
    "hex_length": 16
}

Sample Output

{
    "result": "3a7f9b2c5e1d8f4a6b0c2d3e4f5a6b7c"
}

Random item

Get a random item from a list. Sample Input

\{
    "list": [
        "apple",
        "banana",
        "cherry",
        "date",
        "elderberry"
    ]
\}

Sample Output

{
    "result": "cherry"
}

Random number

Generates a random number. Sample Input

\{
    "integer": true,
    "smallest": 1,
    "biggest": 100
\}

Sample Output

{
    "result": 42
}

Random property

Get a random key/value pair from an object. Sample Input

{
    "object": \{
        "name": "John Doe",
        "age": 30,
        "city": "New York",
        "occupation": "Software Engineer",
        "hobbies": [
            "reading",
            "hiking",
            "photography"
        ]
    \}
}

Sample Output

\{
    "key": "occupation",
    "value": "Software Engineer"
\}

Random string

Generates a random string. Sample Input

\{
    "characters_set": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
    "minimum_length": 8,
    "maximum_length": 16
\}

Sample Output

{
    "result": "Xj9Kl2mRtY"
}

Random UUID

Generates a random UUID. Sample Input

{}

Sample Output

{
    "result": "550e8400-e29b-41d4-a716-446655440000"
}

Was this page helpful?