@shinigami_dev/randomizer

1.0.6 • Public • Published

Usage

Randomizer

const { randomize } = require('@shinigami_dev/randomizer'); //Require function.

console.log(randomize(String)); //Console log the randomized string.
  • Intakes a String, Returns a String.

arrayPick

const { arrayPick } = require('@shinigami_dev/randomizer'); //Require function.

console.log(arrayPick(Array)); //Console log the random item from the array.
  • Intakes an Array, Returns a String.

randomNumber

const { numberPick } = require('@shinigami_dev/randomizer'); //Require function.

console.log(numberPick()); //Console log any random number.

console.log(numberPick(Integer)); //Console log a random number that is <Integer> digits long. 
  • Optional max parameter intakes a Number, Returns a Number.

Readme

Keywords

Package Sidebar

Install

npm i @shinigami_dev/randomizer

Weekly Downloads

0

Version

1.0.6

License

ISC

Unpacked Size

4.55 kB

Total Files

3

Last publish

Collaborators

  • shinigami_dev