Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 601 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 601 Bytes

random-generator: random data generator

Generate random values, includes intenegers, floats and boolean values.

This is module will work in both client side and server side

Installing

npm i random-generate

Dependencies

No dependencies

Usage

Generate random integer

    const Random = require('random-generate')

    // int related
    Random.int() // 57
    Random.int(5, 600) // 430

    // float related
    Random.float() // 43.2
    Random.float(5, 600) // 292.4
    Random.float(5, 600, 4) // 438.9023

    // boolean related
    Random.boolean() // false