There are three random functions in Self.
var choice = random("hello", "hi", "Hey");
var list = [ "hello", "hi", "hey" ];
var choice = list.random();
var object = new Object();
object.name =+ "Jon";
object.name =+ "Jonny";
var choice = object.random(#name);
|