🎲
Random
Generate random values
Generate random integers.
const Random = Utils.Random;
// generate random integer between 1 to 10
const int = Random.Int(1, 10);
Bot.reply(int)
Generate random integers.
const Random = Utils.Random;
// generate random float value between 1 to 10
const float = Random.Float(1, 10);
Bot.reply(float)
Pick any random item from an array
const Random = Utils.Random;
const item = Random.Picker(['a', 'b', 'c']);
Bot.reply(item)
Last modified 10mo ago