@voidvoxel/random-integer

1.0.1 • Public • Published

@voidvoxel/random-integer

Generate random integers

Installation

npm i @voidvoxel/random-integer

Usage

Import

Module

import randomInteger from '@voidvoxel/random-integer';

CommonJS

const randomInteger = require('@voidvoxel/random-integer');

Pick a positive integer

randomInteger()

Pick a negative integer

randomInteger(-Infinity)

Pick an integer between 0 and 3

randomInteger(3)

Pick an integer between 1 and 10

randomInteger(1, 10)

Pick an integer between -100 and 100

randomInteger(-100, 100)

Readme

Keywords

none

Package Sidebar

Install

npm i @voidvoxel/random-integer

Weekly Downloads

1

Version

1.0.1

License

MPL-2.0

Unpacked Size

176 kB

Total Files

9

Last publish

Collaborators

  • voidvoxel