Skip to content

ramaiahkethana/random-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generate random number and float

Resources

Stars

Watchers

Forks

Packages

No packages published