How can I go about picking a random value from a list, I stupidly thought I could load it into a var by using:
var/K = pick(in Roster)
But that doesn't seem to be the case, any help would be jumped upon.
Thanks in advance.
-Thorg
ID:173336
Jan 16 2004, 11:46 am
|
|
var/list/predefinedlist = list("A","B")
var/K = pick(predefinedlist)
or
var/K = pick(list("A","B"))