2.0.0 • Published 4 years ago

easy-randomer v2.0.0

Weekly downloads
6
License
ISC
Repository
github
Last release
4 years ago

À 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éthodeDescriptionRetourne
.round()Génère un nombre entier aléatoireNumber

Arguments

MéthodeArgumentObligatoire
.round(min, max)Number, NumberOui

Liens