C10 - initial
random (Sifts) | |
---|---|
Type | Corrade progressive sift |
Sift | random |
Parameters | an integer representing a seed |
Description | The random sift will select a random element from the CSV list. |
Last Changes | None |
The random
sift will select a random element from the CSV list.
Position | Type | Description | Example |
---|---|---|---|
0 | an integer | a seed to use for the selection of a random element from the list | 67 |
The following sift, when added to a command, will delete the first two items of the CSV list and then rotate the resulting list twice to the left.
"sift", wasListToCSV([ "random", 67 ]),
Given the input:
data=1,a,2,c,3,d
then a random item will be selected and the expected output may be:
c