array-generator

1.0.2 • Public • Published

Array generator

Generate an unsorted array with the given properties

Installing

$ npm install array-generator --save

How to use

arrayGenerator(size, maxValue, minValue)

/* values range is [minValue, maxValue) */

How to use

const arrayGenerator = require('array-generator)

arrayGenerator(5, 1, 6)

/* return random unsorted array like [2, 3, 1, 5, 4]  */

Running the tests

$ npm run test

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Package Sidebar

Install

npm i array-generator

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • tommytrg