Skip to content

post2seth/random-indian-name

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-indian-name

Generate random (or seeded) Indian Names.

To install:

npm install random-indian-name

To use:

var random_name = require('random-indian-name');
console.log(random_name()); // -> "Gaurav Seth"
console.log(random_name({ first: true, gender: "male" })); // -> "Pushkar"
console.log(random_name({ last: true })); // -> "Seth"
console.log(random_name({ seed: 'Based on this' })); // -> "Madhu Bhatia"
console.log(random_name({ random: Math.random, female: true })); // -> "Monika"

The names are taken from Baby names sites. The default random number generator is alea, because it can be seeded -- but you can pass in any function you like, so long as it returns a floating point number in the range [0,1).

About

Generate random indian names

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%