1.0.4 • Published 2 years ago

quick-int v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

quick-int

Simply generate a random integer with this utility method.

The generator is inclusive on both ends, so quick_int(0, 10) could produce 0, 10, or any whole number in between.

NPM

NPM Repository

CDN

You can use the CDN version of this plugin for fast and easy setup.

<script src="https://unpkg.com/quick-int@latest/index.js"></script>

Installation

You can install quick-int with just one command and you're good to go

# with npm
npm i quick-int

# with yarn
yarn add quick-int

Examples

import quick_int from "quick-int";

const my_int_01 = quick_int({ min: 0, max: 100 });
const my_int_02 = quick_int(0, 100);
const my_int_03 = quick_int();
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago