MUDL:array shuffle

From WikiName
Jump to: navigation, search


Summary

Function Name array_shuffle
Settable No
Returns Array


Parameter Options
Array (of any type)


This function takes the input array and returns a new array with the previous elements randomly shuffled.


Example

setproc <parent> # on_foo
foreach(array_shuffle(range(1, 10)), %9,
(
    msg_room(%room, '' + %9)
)),

return(true)