Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

Commit

Permalink
README file update
Browse files Browse the repository at this point in the history
  • Loading branch information
Prosen-Ghosh committed Aug 29, 2017
1 parent 2aa6dd8 commit ce2efe6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,17 @@ var rand = require('random-pro');
console.log(rand.generatePassword("YYYY-MM-dd"));
// 1983-11-11
```
### Generate Country Name

***generateCountry*** This Function will random country name.

```javascript
var rand = require('random-pro');
console.log(rand.generateCountry());
// Iceland
console.log(rand.generateCountry());
// Brazil
```

## String

Expand Down
2 changes: 1 addition & 1 deletion data/countryNames.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "random-pro",
"version": "1.5.6",
"version": "1.5.7",
"description": "A JavaScript package for random things.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/pro-users.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ var generateBirthDate = (format = "DD-MM-YYYY") => {
}

var generateCountry = function(){
return country[Math.floor(Math.random() * (Math.length))];
return country[Math.floor(Math.random() * (country.length))];
}
module.exports = {
randGenerateUserName,
Expand Down

0 comments on commit ce2efe6

Please sign in to comment.