Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.34 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.34 KB

random-ts-library

GitHub License GitHub Issues or Pull Requests GitHub repo size

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

License

MIT