FillArrayRandomDuplicates_v2 Op
Fill an array with random duplicates
Summary (oneliner)
example 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
- Ops.Array.FillArrayRandomDuplicates_v2
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch FillArrayRandomDuplicates example file
INPUT PORTS
The array used to get random values from
The length of the new array
OUTPUT PORTS
The generated array with the new values.
Patches using FillArrayRandomDuplicates_v2
Changelog
created op | pandur - 2019-01-29 17:18 | |
added random seed input port | andro - 2019-02-08 13:18 | |
cloned op from Ops.Array.FillArrayRandomDuplicates | pandur - 2022-11-23 14:06 | |
Ops.User.pandur.FillArrayRandomDuplicatesV2 renamed to Ops.Array.FillArrayRandomDuplicates_v2 | pandur - 2022-11-23 14:14 | |
bugfix | array now has the correct length | pandur - 2022-12-14 17:21 |
improvement | no trigger required anymore to generate | pandur - 2022-12-14 17:21 |