beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

RandomArrays Op

Ops.Array.RandomArrays


RandomArrays

create a random array of 1 to 4 dimensions


This op lets you create an array of random values. You can choose between 1, 2, 3 or 4 dimensions.

You can set min and max ranges per component!

Example use cases:

  1. Mode AB: Create 2-dimensional coordinates [x1, y1, x2, y2, z1, z2, ...]
  2. Mode ABC: Create 3-dimensional coordinates [x1, y1, z1, x2, y2, z2, ...]
  3. Mode ABC: Create RGB values [r1, g1, b1, r2, g2, b2, ...]
  4. Mode ABCD: Create RGBA values [r1, g1, b1, a1, r2, g2, b2, a2, ...]


Inputs

Num Values (integer /Number)

amount of chunks

Mode index (integer /Number)
Random Seed (Number)

seed for number distribution

Integer (boolean /Number)

Check to set values to integers

Value Range A

Min A (Number)

minimum value for A

Max A (Number)

maximum value for A

Value Range B

Min B (Number)

minimum value for B

Max B (Number)

maximum value for B

Value Range C

Min C (Number)

minimum value for C

Max C (Number)

maximum value for C

Value Range D

Min D (Number)

minimum value for D

Max D (Number)

maximum value for D

Outputs

Array Out (Array)

Output of the constructed array

Chunks Amount (Number)

number of chunks

Array length (Number)

length of the array

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

RandomArrays example

Open Example In Editor


Patches using RandomArrays

Changelog


created op
2019-11-19 - simod

Ops.User.cables.RandomArraysXX renamed to Ops.Array.RandomArrays
2019-11-19 - simod