aboutsummaryrefslogtreecommitdiff
path: root/lib/random.js
diff options
context:
space:
mode:
authorMarak <[email protected]>2016-03-17 20:51:30 -0400
committerMarak <[email protected]>2016-03-17 20:51:30 -0400
commit9c7620f87918652020f2b239cde3e55df749be70 (patch)
tree0034280fdaff87f538fdc975b04330895b89219f /lib/random.js
parent1238c8b65e15972f9746863b8b3b5a6161b34770 (diff)
parentcf22b690004e67d523a72ef72994b1248ca0bd4b (diff)
downloadfaker-9c7620f87918652020f2b239cde3e55df749be70.tar.xz
faker-9c7620f87918652020f2b239cde3e55df749be70.zip
Merge pull request #352 from ashpr/bitcoin-support
[api] Added Bitcoin support
Diffstat (limited to 'lib/random.js')
-rw-r--r--lib/random.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/random.js b/lib/random.js
index b152ddbd..d3cbf3ea 100644
--- a/lib/random.js
+++ b/lib/random.js
@@ -189,6 +189,15 @@ function Random (faker, seed) {
return faker.random.arrayElement(Object.keys(faker.locales));
};
+ /**
+ * alphaNumeric
+ *
+ * @method faker.random.alphaNumeric
+ */
+ this.alphaNumeric = function alphaNumeric() {
+ return faker.random.arrayElement(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]);
+ }
+
return this;
}