Join the Bot Libre open source Projekt bei BotLibre.org
Bot Libre Forum : random remembered

RE: random remembered

durch admin gepostet Jan 1 2018, 8:33

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);


Id: 20374769
Gepostet: Jan 1 2018, 8:33
Antworten: 0
Ansichten: 1869, heute: 3, Woche: 3, Monat: 5
0 0 0.0/5