Node - Random

  • Views Views: 18
  • Last updated Last updated:


   H:I - Audio
      Coordinate System
      Guide - Intro Cameras
      Chain Link Fence
      Fusion Coils
      Custom Games
      Player Character
         Base Weapons
         Weapon Combinations
         Weapon Variants
      Area Monitors
      Node - Random
      Node - Traits
      Pattern - Pub-Sub
      Terms - Generic
      Traits - Shields
      Variables - Scope
      Forge Editor UI
  • Random

    When working with the Random node, it is important to keep in mind the following:
    • Every node that the Random node is connected to will pull a new random number during execution.
    • This means that plugging Random into multiple nodes may result in each node receiving a different number.
    • To maintain a consistent random number, create a local variable and set the value of that variable when the script initially executes. Then, refer to that variable for the remainder of the script's execution.
    Additionally, despite what Random's description may lead you to believe, Random actually returns a whole number between the Min and Max values provided, inclusively. This means that the Min and Max values provided are valid random numbers that may be returned by the node. For example, a Min and Max of 0 and 1 may return either 0 or 1.


    Captain Punch