random-sum

1.1.0 • Public • Published

random_SUM

returns n random numbers to get a sum k

install

$ npm install random-sum

Usage

const randomSum = require('random-sum');

var output = randomSum(3, 52);

//=>[14, 23,15]

//n as the first parameter and k as the second parameter

Coverage Status

Package Sidebar

Install

npm i random-sum

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

4.68 kB

Total Files

6

Last publish

Collaborators

  • prashanthsoordelu