Table of Contents

Random

C10 - initial

random (Sifts)
TypeCorrade progressive sift
Siftrandom
Parametersan integer representing a seed
DescriptionThe random sift will select a random element from the CSV list.
Last ChangesNone

The random sift will select a random element from the CSV list.

Arguments

Position Type Description Example
0 an integer a seed to use for the selection of a random element from the list 67

Example

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
    ]),

Effect on Returned Data

Given the input:

data=1,a,2,c,3,d

then a random item will be selected and the expected output may be:

c