UNPKG

@rohitbakoliya/test-gen

Version:

Quickly generate test cases for stress testing using interactive CLI.

9 lines (8 loc) 302 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Random = (randomParams) => { const min = Math.ceil(randomParams.min); const max = Math.floor(randomParams.max); return Math.floor(Math.random() * (max - min + 1)) + min; }; exports.default = Random;