Skip to main content
Randomize node
Updated over 2 weeks ago

Overview

The Randomize Node in Scade.pro allows you to introduce randomness into your workflow by selecting a specified number of elements from a given list. This is useful for scenarios where you need to shuffle options, pick random samples, or create variability in automated processes.

Parameters

The Randomize Node has two key parameters:

  1. Input Values ([])

    • A list of values from which the random selection will be made.

    • This can be any type of data, such as numbers, text, objects, or a mix of them.

    • Example:

      ["apple", "banana", "cherry", "date", "elderberry"]


​2. Output count

  • Defines how many random elements should be selected from the input list.

  • If the count exceeds the available elements, all items may be returned without duplicates (unless explicitly handled otherwise).

  • Example:

    • If Input Values contain five fruits and Output Count is 2, the node may return:

      ["cherry", "banana"]


Implementation

To use a Randomize Node in your workflow:

  1. Drag and drop the node into your flow.

  2. Define the Input Values list.

  3. Set the Output Count to specify how many items should be selected.

  4. Connect the node to the next step in your workflow to process the randomized output.

By incorporating the Randomize Node, you can enhance workflows with dynamic and unpredictable behaviors, making them more versatile and interactive.

How to use on Scade

Use case 1: Random discount

Dynamically generates promotional discount images with randomized offers.

How it works

  1. Random discount selection – The system randomly picks a discount or promotional offer from provided (e.g., “2% off,” “$10 voucher,” “Try Again”).

  2. AI-generated background – ChatGPT creates a custom image prompt for a promotional backdrop, ensuring a clean, non-holiday-specific theme.

  3. Image generation – An AI model generates a high-quality promotional image based on the prompt.

  4. Text overlay – The selected discount text is added to the image using a predefined font, color, and padding settings.

  5. Final output – The user receives a ready-to-use promotional image with a randomly assigned discount.

Use case 2: Random picture style creation

Generates AI-enhanced portraits with randomized artistic styles. It combines face swapping, AI-driven styling, and image generation to create unique and visually engaging images.

How it works

  1. User uploads a photo – The system takes an input image.

  2. Random style selection – A random aesthetic (e.g., fantasy, cyberpunk, retro, cinematic) is chosen.

  3. AI-generated prompt – ChatGPT creates a detailed image prompt based on the selected style.

  4. Image generation – The AI generates a stylized version of the uploaded photo.

  5. Face swap integration – The original face is merged into the generated image for realism.

  6. Final output – The user receives a customized portrait in a unique style.

Did this answer your question?