easy-randomer

2.0.0 • Public • Published

Serveur Discord Version NPM Téléchargements NPM

Informations NPM

À propos

easy-randomer est un module NPM simplifiant la génération de nombre aléatoire.

  • Simple d'utilisation
  • Utile
  • Rapide mise en place

Installation

npm install easy-randomer

Exemple d'utilisation

const Random = require("easy-randomer");
 
console.log(Random.round(0, 5)) // -> 0 | 1 | 2 | 3 | 4 | 5
console.log(Random.round(2, 7) // -> 2 | 3 | 4 | 5 | 6 | 7

Méthodes

Méthode Description Retourne
.round() Génère un nombre entier aléatoire Number

Arguments

Méthode Argument Obligatoire
.round(min, max) Number, Number Oui

Liens

Package Sidebar

Install

npm i easy-randomer

Weekly Downloads

1

Version

2.0.0

License

ISC

Unpacked Size

4.27 kB

Total Files

4

Last publish

Collaborators

  • nyfos