0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Generate → Number

AI-generated

Overview

The node "0CodeKit" provides a versatile toolbox of no-code utilities grouped by resource types. Specifically, the Generate - Number operation generates a number within a user-defined range. This is useful in scenarios where you need to produce random or sequential numbers for testing, simulations, or dynamic data generation in workflows.

For example, you might use this node to generate a random discount code number between 1000 and 9999 or to simulate sensor readings within a specific numeric range.

Properties

Name Meaning
Range Start The start value of the number range (inclusive). Must be a number.
Range End The end value of the number range (inclusive). Must be a number.

Output

The output JSON contains the generated number within the specified range. The exact structure is not fully detailed in the source, but typically it will include a field with the generated number as a numeric value.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authentication to the external service at https://prod.0codekit.com.
  • The node makes a POST request to the endpoint /generate/number with the range parameters in the request body.
  • No additional environment variables are explicitly required beyond the API key credential.

Troubleshooting

  • Common issues:

    • Invalid range values (e.g., Range Start greater than Range End) may cause errors or unexpected results.
    • Missing or invalid API key credential will result in authentication failures.
    • Network connectivity issues can prevent the node from reaching the external API.
  • Error messages:

    • Authentication errors indicate problems with the provided API key; verify and update credentials.
    • Validation errors on input properties suggest incorrect or missing range values; ensure both start and end are numbers and that start ≤ end.
    • Timeout or network errors require checking internet connection or API service status.

Links and References

Discussion