JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q51850F
  • License MIT

A npm library making randomness easier

Package Exports

  • randomiz
  • randomiz/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (randomiz) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

NPM Version

Issues GitHub commit activity NPM License

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 )

Full documentation 👉 documentation.md


Features

  • Simple and lightweight: Minimal code, no dependencies.

  • randFloor(a,b) , randInt(a,b) , randBytes(n) , randBits(n) , 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.