random-ts-library
v1.0.5
Published
Helper functions to work with the random function
Downloads
10
Maintainers
Readme
random-ts-library
Random lib is a TS library which provides straight-forward, powerful helper functions for working with the random function in JavaScript. Although originally builted into JavaScript and can be called by using Math.random(), it can also be used with other methods, objects, data types and for other purposes. A JavaScript version will be included in the main library that should available for use automatically.
Table of Contents
Features
- Returns a random number between 0 and 1
- Returns a random number between 0 and n
- Returns a random number between n and o
- Returns a generate a number between 1 and x
- Returns a randomized copy of an array
- Returns a randomized copy of an array
- Returns a random bool, weight results of true by t
- Returns a random number based on a description
Installing
Packgae Manager
Using npm:
$ npm i random-ts-library
Using yarn:
$ yarn add random-ts-library