Skip to content

el634dev/random-ts-library

Repository files navigation

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

About

Helper functions to work with Math.random() more smoothly

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published