Get a random number.
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
import { randomNumber } from "@ultirequiem/random-number";
You can use any CDN π₯
Eg. ESM βΆ SkyPack / script tag βΆ JSDelivr.
The API is the same on all this platforms.
Is hosted on Deno Doc π
- Deno π
deno install https://deno.land/x/random_number/rnd.ts
- Node.js πΌ
npm install -g @ultirequiem/random-number
rnd --help
A binary for multiple platforms is provided too!
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 β
We use SemVer for versioning. For the versions available, see the tags.
Eliaz Bobadilla (a.k.a UltiRequiem) - Creator and Maintainer πͺ
See also the full list of contributors who participated in this project.
Licensed under the MIT License.