f-990714-8
ldmud-3.2.9/src/bugs/f-990714-8 · 335 B
From the archive ldmud-329.tar.gz
Download the archive « Back to the archive contents
Short: New efun shuffle_array()
From: Tubmud
Type: Feature
State: Unclassified
mixed *shuffle_array(mixed *arr);
shuffles the array randomly and returns the result:
shuffle_array(({ 1,2,3,4 }))
==> ({ 4,1,3,2 }) (when I tested)
shuffle_array() and turn_array() also work for strings.