Skip to content

Random (int)

14

The Random (int) node generates a static random whole number within a specified range. Unlike the changing version, this value remains constant until it is manually refreshed by an external trigger.

When to use this node: * Setup Randomization: Generating a secret code or a starting position for a puzzle at the beginning of each game. * Puzzle Variance: Selecting one of several random outcomes (e.g., picking 1 of 4 possible paths) when a player performs a specific action. * Dynamic Challenges: Refreshing the "target" value for a mini-game every time a player makes a mistake.

Pro Tip: Connect the change input to an onBeginPlay event to ensure every group of players has a unique experience with different codes or patterns.

Connectors in

  • change [type: action]

Connectors out

  • value [type: integer]

Node properties

  • description [type: string]
  • change value [type: action]
  • max [type: integer]
  • min [type: integer]
  • show description [type: bool]