UNPKG

jsfakeit

Version:

![alt text](https://raw.githubusercontent.com/Anirban20001962/jsfakeit/main/logo.png)

14 lines (13 loc) 468 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRandomArbitrary = exports.chooseRand = void 0; function chooseRand(key, object) { const l = object[key].length; const index = Math.floor(Math.random() * l); return object[key][index]; } exports.chooseRand = chooseRand; function getRandomArbitrary(min, max) { return Math.floor(Math.random() * (max - min) + min); } exports.getRandomArbitrary = getRandomArbitrary;