Created
May 22, 2018 08:59
-
-
Save Driptap/93b9f0fede1c3383731925328e9181b0 to your computer and use it in GitHub Desktop.
Faker.js and Rosie.js helpers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const randomIntBetween = (min, max, string = false) => { | |
let int = Faker.random.number() % max + min; | |
return string ? String(int) : int; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment