API

Class FlowGraphRandomBlock

Random number between min and max (defaults to 0 to 1)

This node will cache the result for he same node reference. i.e., a Math.eq that references the SAME random node will always return true.

Hierarchy

Index

the configuration of the block

dataInputs: FlowGraphDataConnection<any>[]

The data inputs of the block.

dataOutputs: FlowGraphDataConnection<any>[]

The data outputs of the block.

isValid: FlowGraphDataConnection<boolean>

Output connection: Whether the value is valid.

max: FlowGraphDataConnection<number>

The maximum value. defaults to 1.

metadata: any

Metadata that can be used by the block.

min: FlowGraphDataConnection<number>

The minimum value. defaults to 0.

name: string

The name of the block.

uniqueId: string = ...

A randomly generated GUID for each block.

value: FlowGraphDataConnection<FlowGraphMathOperationType>

The output of the operation

  • Serializes this block

    Parameters

    • serializationObject: any = {}

      the object to serialize to

    • _valueSerializeFunction: (key: string, value: any, serializationObject: any) => any = defaultValueSerializationFunction

      a function that serializes a specific value

    Returns void