Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 464 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 464 Bytes

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