ptz-math is a javascript library for math operations
Be welcome to learn, help and play!!!
npm install --save ptz-math
Get random number between 2 and 8:
import { random } from ptz-math;
const min = 2;
const max = 8;
const randomNumber = random(min, max);
Get random item from array:
import { getRandomItem } from ptz-math;
const list = ['a', 'b', 'c', 'd'];
const randomItem = getRandomItem(list);
npm install -g ts-node babel-cli
npm install
npm test