Skip to content

bukinoshita/rnd-age

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rnd-age

Generate a random age

Codeship Status for bukinoshita/rnd-age Build Status GitHub release license

Install

$ npm install --save rnd-age

Usage

import rndAge from 'rnd-age'

rndAge(1990, 1994).then(randomAge => console.log(`John has ${randomAge} years`))
// => John has 22 years

API

rnd-age(from, to)

from

Type: Number
Required

to

Type: Number
Required

Related

License

MIT © Bu Kinoshita