mirror of
https://github.com/vastxie/99AI.git
synced 2025-11-13 04:03:45 +08:00
NineAI 2.4.2
This commit is contained in:
8
dist/common/utils/getRandomItem.js
vendored
Normal file
8
dist/common/utils/getRandomItem.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getRandomItem = void 0;
|
||||
function getRandomItem(array) {
|
||||
const randomIndex = Math.floor(Math.random() * array.length);
|
||||
return array[randomIndex];
|
||||
}
|
||||
exports.getRandomItem = getRandomItem;
|
||||
Reference in New Issue
Block a user