random-roman

1.0.4 • Public • Published

Random Roman

generate a (pseudo-)random ROMAN number


This package internally uses Math.random() to generate pseudo-random number (PRNG) and a custom algorithm to convert it to a Roman number.
Its just a result of being bored in office.

List of features

  • Generate a random roman number without any range
  • Generate a random roman number within a range :p
  • Too lazy to add a new feature

Code Demo

Download & Installation

$ npm i random-roman

Usage

const randRoman = require('randomRoman');

Methods

  • Without range
  • randRoman();
  • With range
  • randRoman(minNumber, maxNumber);
//without range
console.log(randRoman());

//with min max range
console.log(randRoman(55,999))

Complete Example

const randRoman = require('randomRoman');

console.log(randRoman());

console.log(randRoman(55,999))

Authors or Acknowledgments

  • Shashank

License

This project is not yet licensed.

Package Sidebar

Install

npm i random-roman

Weekly Downloads

0

Version

1.0.4

License

none

Unpacked Size

3.29 kB

Total Files

4

Last publish

Collaborators

  • shashankkapile