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

FillArrayRandomDuplicates_v2 Op


Namespace: Ops.Array

Op author: pandur

Fill an array with random duplicates

you have an array with 3 values [0,1,2]
and you want to have an array of with a length of 9 with these values
You pass the smaller array into FillArrayRandomDuplicates and define a length of 9
You'll then get something like [0,1,2,0,1,2,2,0,0]

Note that the original array that's passed in will always be in the start of the new array. In this case the 1st 3 values will always be 0,1,2


Array (Array)

The array used to get random values from

Num Elements (integer /Number)

The length of the new array

Random seed (Number)


Result (Array)

The generated array with the new values.

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

FillArrayRandomDuplicates example file

Open Example In Editor

Patches using FillArrayRandomDuplicates_v2


created op
2019-01-29 - pandur
added random seed input port
2019-02-08 - andro
cloned op from Ops.Array.FillArrayRandomDuplicates
2022-11-23 - pandur
Ops.User.pandur.FillArrayRandomDuplicatesV2 renamed to Ops.Array.FillArrayRandomDuplicates_v2
2022-11-23 - pandur
bugfixarray now has the correct length
2022-12-14 - pandur
improvementno trigger required anymore to generate
2022-12-14 - pandur