@ultirequiem/random-number
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Random Number

Code Coverage Deno Doc

Get a random number.

Usage

Deno 🦕

import { randomNumber } from "https://deno.land/x/random_number/mod.ts";

randomNumber(); //=> 1 ... 100
randomNumber({ min: 10 }); //=> 10 ... 100
randomNumber({ min: 235, max: 239 }); //=> 235 ... 239
randomNumber({ integer: false }); //=> 0 ... 0.9

Node.js 🐢

import { randomNumber } from "@ultirequiem/random-number";

Browser

You can use any CDN 🔥

Eg. ESM SkyPack / script tag JSDelivr.

The API is the same on all this platforms.

Documentation

Is hosted on Deno Doc 📄

CLI

Install

  • Deno 🎃
deno install https://deno.land/x/random_number/rnd.ts
  • Node.js 🐼
npm install -g @ultirequiem/random-number

Usage

rnd --help

A binary for multiple platforms is provided too!

Support

Open an Issue, I will check it a soon as possible 👀

If you want to hurry me up a bit send me a tweet 😆

Consider supporting me on Patreon if you like my work 🚀

Don't forget to star the repo

Versioning

We use SemVer for versioning. For the versions available, see the tags.

Authors

Eliaz Bobadilla (a.k.a UltiRequiem) - Creator and Maintainer 💪

See also the full list of contributors who participated in this project.

Licence

Licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i @ultirequiem/random-number

Weekly Downloads

27

Version

2.0.0

License

MIT

Unpacked Size

282 kB

Total Files

98

Last publish

Collaborators

  • ultirequiem