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

secondlife/scripted_agents/corrade/api/sifts/random.txt ยท Last modified: 2022/11/24 07:46 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.