java.lang.Object
com.marginallyclever.nodegraphcore.Node
com.marginallyclever.nodegraphcore.nodes.math.Random

public class Random
extends Node
Generate a new random number in the range max-min when updated.
  • Constructor Details

    • Random

      public Random​(double top, double bottom)
      Constructor for subclasses to call.
      Parameters:
      top - the maximum value, exclusive.
      bottom - the minimum value, inclusive.
    • Random

      public Random()
      Constructor for subclasses to call.
  • Method Details

    • create

      public Node create()
      Description copied from class: Node
      Return one new instance of this type of Node. Override this method in derived classes.
      Specified by:
      create in class Node
      Returns:
      One new instance of this type of Node.
    • update

      public void update()
      Description copied from class: Node
      Override this method to provide the custom behavior of this node. Runs regardless of dirty inputs or outputs.
      Specified by:
      update in class Node