2.2.0 • Published 4 months ago

randomiz v2.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

NPM Version npm.io NPM License

Issues npm.io GitHub commit activity

Randomiz - Randomness is easy now!

randomiz is a light-weight javascript library that contains multiple utility functions for:

  • Generating with flexibility random strings/arrays/numbers.
  • Random stuff on arrays/strings.

Installation 👉 npm -i randomiz or clone the Github repo.

Source code 👉 Github: https://github.com/manerr/randomiz (feel free to report issues &/ fork )

Documentation 👉 documentation.md


Features

  • Simple and lightweight: Minimal code & no dependencies.

  • randFloor(a,b) , randInt(a,b) , randBytes(n) , randMat(rows,cols,min,max) , randToken(n)get random numbers/arrays/strings

  • shuffle(l) , choice(l,count) , pick(l) , pickPop(l) , randSlice(l,count)random tools on arrays (strings are generally converted to 1-char arrays)

It covers almost every use case, from data sampling to game development.

Warning 👉 Since 2.0.0, a cryptography safe randomizer is used, but since the casual way is pretty slow (using buffers and calling a cryptographic function every single call), I've tried to optimize some parts of the process. Feel free to report issues on github.

2.2.0

4 months ago

2.1.0

6 months ago

2.0.1

7 months ago

2.0.0

7 months ago

1.8.2

7 months ago

1.8.1

7 months ago

1.8.0

7 months ago

1.7.1

7 months ago

1.7.0

7 months ago

1.6.0

7 months ago

1.5.1

8 months ago

1.5.0

8 months ago

1.4.0

8 months ago

1.3.3

8 months ago

1.3.2

8 months ago

1.3.1

8 months ago

1.3.0

8 months ago

1.2.11

8 months ago

1.2.1

8 months ago

1.2.0

8 months ago

1.1.0

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago