Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@dank-inc/numbaz

dank-inc18MIT0.8.0TypeScript support: included

The Dankest Random & Number Library written with Typescript

typescript, random, generate

readme

Numbaz

npm version

npm install @dank-inc/numbaz

API

import { Rando } from '@dank-inc/numbaz'

Rando.num() // random number from 0 <> 1
Rando.number() // random number from -1 <> 1
Rando.number(2) // random number from -2 <> 2
Rando.number(1, 10) // random number from 9 <> 11
Rando.item([1, 2, 3, 'a', 'b', 'c']) // random item from array