primitif
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

primitif

Generate any number of combinations between a min, a max, and given a certain length for lotteries.

Installation

Using npm:

npm i primitif

Using yarn:

yarn add primitif

Usage

Using CommonJS

const { getRandomNumber } = require('primitif');

getRandomNumber(1, 6) // result is a random integer between 1 and 6

Using imports

import { createCombination } from 'primitif';

createCombination(1, 49, 6) // Result is an array of 6 integers between 1 and 49, without repeating numbers

Documentation

See DOCS

Package Sidebar

Install

npm i primitif

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

12.1 kB

Total Files

11

Last publish

Collaborators

  • alrico88