http://grimore.i2p/fuss/lsl?amp;=
The dualQuicksort can be obtained from this page, in a previous section and is there because in certain circumstances one may calculate the probabilities for A, B, C and D dynamically without any previous knowledge. list sorted = dualQuicksort ( [ 60 , 10 , 10 , 20 ] , [ "A" , "B" , "C" , "D" ] ) ; list identifier_list = llList2ListStrided ( llDeleteSubList ( sorted, 0 , 0 ) , 0 , llGetListLength ( sorted ) - 1 , 2 ) ; list identifier_probabilities = llList2ListStrided ( sorted, 0 , llGetListLength (...