Skip to content
Another πŸ”’ Random Number Generator
JavaScript
Branch: master
Clone or download
Latest commit ee8bb77 Jul 31, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig init Jul 31, 2018
.gitignore init Jul 31, 2018
.travis.yml init Jul 31, 2018
LICENSE init Jul 31, 2018
README.md init Jul 31, 2018
cli.js init Jul 31, 2018
index.js init Jul 31, 2018
package.json init Jul 31, 2018
test.js init Jul 31, 2018

README.md




randn : πŸ”’ Random Number Generator

Why randn?

  • Clean and focused
  • CLI included
  • Actively maintained
  • Fast and reliable
  • Easy to get numbers

Install

$ npm install randn

Usage

const randn = require('randn');

console.log(randn());
//=> 315764787997033782716506419531

console.log(randn(5));
//=> 86773

API

rand()

Return a number with default value of 30

Return Type: string

rand(number)

Return an string with custom number

Return Type: string

CLI

Examples
	$ randn
	315764787997033782716506419531

	$ randn --number 5
	86773

	$ randn -n 23
	46379458263283978267360

	Options
	 -n, --number  Generate a number with certain length

Related

  • all-words: Generate all available words (up to four letters) super fast.
  • r4nd0mstr1ng: πŸŒ€ Random string generator.

Team

Carlos Abraham Logo
Carlos Abraham

License

MIT License Β© Carlos Abraham

You can’t perform that action at this time.