UNPKG

@sprucelabs/spruce-skill-utils

Version:

Loosely coupled classes and functions to make skill development faster! 🏎

12 lines (11 loc) 319 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function random(min, max) { return Math.round(Math.random() * (max - min) + min); } const randomUtil = { rand(possibilities) { return possibilities[random(0, possibilities.length - 1)]; }, }; exports.default = randomUtil;