🎉 Welcome to the Mirage Renderer Docs Beta.

Random Nodes
Draw Uniform

Draw Uniform

Draws uniformly from an array based on a draw distribution

Inputs

  1. DrawArray: Array to be drawn from (float[], int[], Vector2[], Vector2Int[], Vector3[], Vector3Int[], Vector4[])
  2. DrawDistribution: Indicates how many elements should be drawn for each index (int[])
  3. RandomSeed (optional): Random number generator seed. If not connected, the node will use Graph’s random number generator (int)

Outputs

  1. Randomly selected values from DrawArray (float[][], int[][], Vector2[][], Vector2Int[][], Vector3[][], Vector3Int[][], Vector4[][])

Example

Draw Uniform node example