3.0.0 • Published 4 years ago

random-int v3.0.0

Weekly downloads
49,447
License
MIT
Repository
github
Last release
4 years ago

random-int

Generate a random integer

Install

$ npm install random-int

Usage

import randomInteger from 'random-int';

randomInteger(5);
//=> 3

randomInteger(10, 100);
//=> 54

API

randomInteger(maximum?)

Returns an integer from 0 to maximum.

randomInteger(minimum, maximum)

Returns an integer from minimum to maximum.

minimum

Type: number\ Default: 0

Minimum integer to return.

maximum

Type: number\ Default: 1

Maximum integer to return.

Related

soldrfunctionsdotav@infinitebrahmanuniverse/nolb-random-iguessingnumber_salman@everything-registry/sub-chunk-2526p2ptcb-aiwmd-ts-atmwmd-ts-number-gamewally-desktop-clixkcd-calendar-factsshahmir-advengameshahmir-advgameshahmir-atmshahmir-gameshahmir-stdmsystemshahmirnumbergameshahmirnumbergame-1shahmirnumbgamerelative-random-timerockpaperscisorsstaart-managertext-memerandom-ts-auto-mocklogpumplicense-plate-serial-generatorgol-functionalinsomnia-plugin-randomuksortcodeint-matrix-generatormsauleh-number-guessing-gamemsaulehp2guess_number_01hazynahighoutput-utilitieshynumberguessinggameimage-node-sdkkikstartkikstart-agent-clilunch-wheelp2talkosm-geojsonoopmybankbymohammadsaulehproject_adventuregameproject001popads-apiport-meplayship-fruitdartplayship-fruitninjaplayship-fruitninja-leagueplayship-galactica-gamenpmhomework3primitivemyreuselibrarymyui5librarychenmyui5librarymobopiano-gamereact-dyslexianome-aleatorionpm-custom-lib-resuerandom-recordrandom-parserandom-int-listrandom-integer-generatorrandom-lettersp-functionssindresorhus.jsshredbeattwitterneuralnetworktwitterfollowerexplorertype-script-dice-guess-gametypescript-atm-proj-mahmedusernames@coon-js/deloreanzaman_haider_number_guessing_assignmentvhost-proxy@dtjv/randomize-array@elastosfoundation/wallet-js-sdk@gggdomi/rrh@grancalavera/prufer@lokua/cli@nandhakumarb/npm_sample@mindfulstudio/ms-web-ui@kawaiilab/azusa@obdul/ngg@obdul/sms@sidneys/electron-updater-service@staart/manager@cs125/questionable@thorstensuckow/delorean@ui5/fs@types/random-intaffa-guidadd-image-borderadventuregamebymsadjective-adjective-animal-liteamazon-sc-business-reportsalainantispambotjscodememe2sharechrome-headless-launcher
3.0.0

4 years ago

2.0.1

5 years ago

2.0.0

6 years ago

1.0.0

9 years ago