I've got an array that's populated using
Code: Select all
set players($nick) 1Now my problem: I want to select a random item (= nick) from the $players array, but I can't figure out how to do it.
Code: Select all
set tnick [lindex $players [rand [llength $players]]]Thx for any help.
PS: I only need a random nick from the array, not the number behind it.