aboutsummaryrefslogtreecommitdiff
path: root/lib/random.js
AgeCommit message (Collapse)AuthorFilesLines
2017-09-09Revert "Update Random to create a per-instance copy of the RNG"Marak1-15/+3
This reverts commit 8a33cf0e7a57f8fe766034706d0230802788d1ff.
2017-09-08Update Random to create a per-instance copy of the RNGChris Chambers1-3/+15
Before this change, it appeared that multiple, independent Faker instances were legal. But, when multiple instances were created, their shared random number generators would overwrite each others' states. After this change, each Random instance (and therefore each Faker instance) has its own copy of the random number generator, ensuring that calls to one Faker instance do not affect the stream of values generated by another.
2017-09-08[minor] Fix typo in code commentMarak1-1/+1
2017-09-08Merge pull request #366 from joonhocho/masterMarak1-0/+28
[api] Add `faker.random.arrayElements`
2017-06-19Generate a hexaDecimal stringGokulnath Reddy1-0/+19
2017-03-01Fix generation of float numbersIvan Goncharov1-1/+3
Fixes #401
2016-04-08add faker.random.arrayElementsJoon Ho Cho1-0/+28
2016-04-04alphaNumeric takes now count as a argumentKrzysztof Kaczor1-3/+13
2016-03-17Bitcoin supportashmothership1-0/+9
2016-03-03Install jsdoc and add doclet stubs for all methodsTobias Witt1-3/+55
Descriptions are taken from existing comments if available. The address module already has some new sample descriptions.
2016-02-15[api] Added `random.locale` method. Closes #274Marak1-0/+4
* Returns a random locale * May not work correctly in locale builds
2016-02-14[api] [minor] Move semver to System resource #304Marak1-9/+0
2016-02-14Added faker.random.semver.Justin McConnell1-0/+5
Conflicts: lib/random.js
2016-02-08Merge pull request #335 from john-kurkowski/patch-1Marak1-1/+2
[fix] random.uuid not using seeded number generator
2016-02-06[api] Improved random methodsMarak1-1/+58
* Adds `random.word` * Adds `random.words` * Adds `random.image` shortcut
2016-01-20Fix random.uuid not using seeded number generatorJohn Kurkowski1-1/+2
2015-07-15Implemented faker.seed method for randomization seedingBrandon Dail1-3/+11
2015-07-08[api] [refactor] Rename `array_element` and `object_element` to camelCase. ↵Marak1-35/+35
Set default max random number to 99999. Added default arguments to some methods.
2015-07-08[refactor] [major] Adds incremental browser builds. Switch to using ↵Marak1-67/+74
prototype for internal API. Previous usage of `module.parent` is not acceptable. Locale information is now passed into Faker constructor. Closes #125
2015-07-07[refactor] [dist] Allow for node to require individual locales ( to avoid ↵Marak1-1/+1
the default behavior of requiring all locale data. #125 #167
2015-06-11resolves #176 Add random boolean generatorAlan Shaw1-0/+4
2015-06-10Fixing bug in random.number when max = 0Phil Greenberg1-1/+1
Also added tests for random.array_element
2015-01-07Merge pull request #152 from jdrew1303/feature/uuid_generatorMarak1-0/+10
[api] Adds fake uuid generator
2014-12-22Added function to generate UUIDJames Drew1-0/+10
2014-12-16update documentation of array_elementAndreas Böhrnsen1-1/+1
2014-11-28added tests and corrected the number functionMichał Kawalec1-5/+4
2014-11-28precision changes precision and max doesn't modify options objectMichał Kawalec1-10/+13
2014-09-22[api] [minor] Added default values for more methods. Cleaned up image ↵Marak1-0/+1
module. Use a less specific regex for usernames.
2014-09-21[api] Added hacker module. Added default values for all methods. Cleaned up ↵Marak1-0/+1
errant methods. Added mustache helper.
2014-09-17[feature] - add faker for currencyMQuy1-1/+8
2014-09-15[api] [refactor] Removed definitions.js file. All data definitions are now ↵Marak1-1/+0
loaded from localized data sets, en is default locale. #116
2014-09-14[refactor] [major] Renamed variable names for consistency Closes #5 Marak1-93/+1
[refactor [major] Moved all errant methods from random.js to individual modules. Methods in random.js were causing unnecessary code complication.
2014-09-11[api] [refactor] Random.number is now powered by node-mersenne instead of ↵Marak1-2/+4
Math.random() #48
2014-09-11[api] [refactor] Replaced Math.Random calls with Random.number. Random ↵Marak1-6/+29
ranges are now inclusive of max instead of exclusive. #88 #48
2014-09-09Fix random numberMarak1-1/+1
2014-09-09Remove this scope from new phone codesMarak1-1/+1
2014-09-09add faker for phone codeMQuy1-0/+3
Conflicts: lib/definitions.js
2014-09-08Removed "this" from functions, breaks mixinsgoliatone1-22/+24
Conflicts: lib/name.js
2014-07-23Updates to switch changes over to using 2 args to support min/maxAnthony van der Hoorn1-6/+5
2014-06-16random number now accepts a range array [min, max].Ed Shadi1-2/+6
2014-02-19reverts f2f37f8FotoVerite1-12/+0
2014-02-17Merge branch 'master' of github.com:cyanos/Faker.js into cyanos-masterFotoVerite1-0/+12
Conflicts: Faker.js MinFaker.js Readme.md examples/js/Faker.js package.json
2014-02-17Fixes so build runs.FotoVerite1-0/+5
2013-11-05My take on separating male and female names. Tests passing, Coverage restored.cyanos31-12/+9
2013-06-27Add random genderRichard Butler1-0/+4
2013-06-27Split male and female names into two groupsRichard Butler1-2/+13
2013-06-12Revert "Merge pull request #59 from rschmukler/this-fix"FotoVerite1-21/+21
This reverts commit dceaccf2ca2c2ff217436404c41f2bf69f7577f6, reversing changes made to 1d28802e388277a6b75efbaa1589027879df101f.
2013-06-05Switched from this to var name to avoid context issuesRyan Schmukler1-21/+21
2013-03-19Improve perf by declaring definitions as arraysJoel Fillmore1-21/+21
2013-01-07renaming array_rand to array_elementBryan Donovan1-22/+22