Draw Weighted
Creates an array based on DrawStructure drawing from DrawArray element with probabilities of Distribution.
Inputs
- DrawArray: Array to be drawn from (float[], int[], Vector2[], Vector2Int[], Vector3[], Vector3Int[], Vector4[])
- DrawStructure: Indicates how many elements should be drawn for each index (int[])
- Distribution (optional): Distribution probabilities between ranges (Curve). If not connected uniform distribution assumed.
- Sort (optional): true -> ascending, false -> descending, empty no sorting. (bool)
- RandomSeed (optional): Random number generator seed. If not connected, the node will use Graph’s random number generator (int)
Outputs:
- Out: Randomly selected (weighted) values from DrawArray (float[][], int[][], Vector2[][], Vector2Int[][], Vector3[][], Vector3Int[][], Vector4[][])