Skip to content

Commit

Permalink
Fix address
Browse files Browse the repository at this point in the history
  • Loading branch information
stereosteve committed May 31, 2013
1 parent 37a36ab commit 0c5d2fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ exports.streetName = function() {
}

exports.address = function() {
return _.random(1200) + ' ' + exports.streetName()
return _.random(1, 1200) + ' ' + exports.streetName()
}

exports.address2 = function() {
return heads() ? 'Apt.' : 'Suite' + ' ' + _.random(999)
return pick(['Apt.', 'Suite']) + ' ' + _.random(1, 999)
}

exports.city = function() {
Expand Down

0 comments on commit 0c5d2fc

Please sign in to comment.