diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/random.js | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/lib/random.js b/lib/random.js index 698dd68a..5717a20a 100644 --- a/lib/random.js +++ b/lib/random.js @@ -89,50 +89,4 @@ var random = { } }; -/** - * Generate methods that return random elements from definition arrays. - */ -var method_names = [ - // Address - 'city_prefix', - 'city_suffix', - 'street_suffix', - 'br_state', - 'br_state_abbr', - 'us_state', - 'us_state_abbr', - 'uk_county', - 'uk_country', - - // Name - 'first_name', - 'last_name', - 'name_prefix', - 'name_suffix', - - // Company - 'catch_phrase_adjective', - 'catch_phrase_descriptor', - 'catch_phrase_noun', - 'bs_adjective', - 'bs_buzz', - 'bs_noun' -]; - -/* -method_names.forEach(function (method_name) { - random[method_name] = function () { - return random.array_rand(definitions[method_name]()); - }; -}); - -method_names.forEach(function (method_name) { - var str = method_name + ': function () {\n' + - ' return random.array_rand(definitions.' + method_name + '());\n' + - '},\n'; - console.log(str); -}); - -*/ - module.exports = random; |
