ID:173336
 
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
You can do either

var/list/predefinedlist = list("A","B")
var/K = pick(predefinedlist)

or

var/K = pick(list("A","B"))
In response to Jon88
Thanks, much obliged.

-Thorg
In response to Thorg
You could have just looked up pick() in the reference without posting. In fact, I suggest you do. There's more stuff there.