hangulx
Version:
Providing various utilities for Hangul
14 lines (13 loc) • 426 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Random = void 0;
var Random = /** @class */ (function () {
function Random() {
}
Random.getRandomItem = function (array) {
var randomIndex = Math.floor(Math.random() * array.length);
return array === null || array === void 0 ? void 0 : array[randomIndex];
};
return Random;
}());
exports.Random = Random;