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

RandomNumbersArray4_v2 Op

Ops.Array.RandomNumbersArray4_v2


RandomNumbersArray4

Generates a random array of numbers in 4-tuples


Typically you would use this to create random positions – [x1, y1, z1, w1, x2, y2, z2, w2 …].
or colors: [r1, g1, b1, a1, r2, g2, b2, a2 …]



Inputs

numValues (integer /Number)

The number of quadruplets to generate

Value Range

Min (Number)

The minimum for the generated values

Max (Number)

The maximum for the generated values

random seed (Number)

When set to 0 the array will be different every time the patch is run, set to another value to have the same output every time

Last == First (boolean /Number)

Set to true to make the first and last number in the array the same, handy for loops

Integer (boolean /Number)

Check to make all values integers (whole numbers)

Outputs

values (Array)

Array out

Tuple Amount (Number)

Amount of tuples

Array length (Number)

Length of Array

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

RandomNumbersArray4 example

Open Example In Editor


Patches using RandomNumbersArray4_v2

Changelog


created op
2020-01-23 - pandur