aboutsummaryrefslogtreecommitdiff
path: root/test/random.unit.js
AgeCommit message (Collapse)AuthorFilesLines
2017-09-09Revert "Update Random to create a per-instance copy of the RNG"Marak1-16/+0
This reverts commit 8a33cf0e7a57f8fe766034706d0230802788d1ff.
2017-09-08Update Random to create a per-instance copy of the RNGChris Chambers1-0/+16
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-08Merge pull request #366 from joonhocho/masterMarak1-0/+40
[api] Add `faker.random.arrayElements`
2017-06-19Generate a hexaDecimal stringGokulnath Reddy1-0/+14
2017-03-01Fix generation of float numbersIvan Goncharov1-0/+8
Fixes #401
2016-04-08add faker.random.arrayElementsJoon Ho Cho1-0/+40
2016-04-04alphaNumeric takes now count as a argumentKrzysztof Kaczor1-0/+12
2016-03-19[fix] [tests] Update lodash APIMarak1-2/+2
* .contains() -> .includes()
2016-02-14[api] [minor] Move semver to System resource #304Marak1-1/+1
2016-02-14Added faker.random.semver.Justin McConnell1-0/+12
Conflicts: lib/random.js
2015-07-15Implemented faker.seed method for randomization seedingBrandon Dail1-1/+7
2015-07-08[api] [refactor] Rename `array_element` and `object_element` to camelCase. ↵Marak1-3/+3
Set default max random number to 99999. Added default arguments to some methods.
2015-06-11resolves #176 Add random boolean generatorAlan Shaw1-0/+7
2015-06-10Adding test for negative minimum and max = 0Phil Greenberg1-0/+5
2015-06-10Fixing bug in random.number when max = 0Phil Greenberg1-1/+17
Also added tests for random.array_element
2015-04-11Fix random number unit test specEvan Sharp1-1/+1
Updated the "returns a random number given a maximum value as Object" to include the max value in the check (changed `<` to `<=`)
2014-12-22Added unit test for uuid generatorJames Drew1-0/+8
2014-11-28added tests and corrected the number functionMichał Kawalec1-1/+34
2014-09-11[api] [refactor] Random.number is now powered by node-mersenne instead of ↵Marak1-7/+1
Math.random() #48
2014-09-11[api] [refactor] Replaced Math.Random calls with Random.number. Random ↵Marak1-9/+20
ranges are now inclusive of max instead of exclusive. #88 #48
2014-09-08Fix: faker.Lorem.sentence() was ignoring the 'range' parameter.Foster Hersey1-0/+5
Conflicts: lib/lorem.js
2014-07-23Updates to switch changes over to using 2 args to support min/maxAnthony van der Hoorn1-4/+3
2014-07-22Bug fixes and latest version.FotoVerite1-0/+22
2014-06-16random number now accepts a range array [min, max].Ed Shadi1-0/+22