llListRandomize Example

Written by Kitsune
list myList = ["Apple", "Pear", "Banana"];
 
default
{
    touch_start(integer total_number)
    {
        list randomizedList;
 
        //Randomize the List, and stuff in new variable
        randomizedList = llListRandomize(myList, 0);
 
        //Pull the first item from the randomized list
        llSay(0, llList2String(randomizedList, 0));
    }
}