Creates a new instance of Faker.
Optionally, the value of the random seed can be set as a constructor parameter. This is intended to allow for consistent values in a tests, so you might want to use hardcoded values as the seed.
Please note that generated values are dependent on both the seed and the number of calls that have been made.
Setting seed to 0 (or omitting it) will use seed derived from system entropy.
Optional
seed: numberrandom seed value for deterministic generator
Readonly
addressGenerator to generate addresses and locations.
Readonly
animalGenerator to generate animals.
Readonly
appGenerator to generate application related entries.
Readonly
beerGenerator to generate beer related entries.
Readonly
bookGenerator to generate book related entries.
Readonly
carGenerator to generate car related entries.
Readonly
celebrityGenerator to generate celebrities.
Readonly
colorGenerator to generate colors.
Readonly
companyGenerator to generate company related entries.
Readonly
emojiGenerator to generate emoji related entries.
Readonly
errorGenerator to generate various error codes and messages.
Readonly
fileGenerator to generate file related entries.
Readonly
financeGenerator to generate finance related entries.
Readonly
foodGenerator to generate food related entries.
Readonly
gameGenerator to generate game related entries.
Readonly
hackerGenerator to generate hacker/IT words and phrases.
Readonly
hipsterGenerator to generate hipster words, phrases and paragraphs.
Readonly
internetGenerator to generate internet related entries.
Readonly
languageGenerator to generate language related entries.
Readonly
minecraftGenerator to generate minecraft related entries.
Readonly
movieGenerator to generate movie related entries.
Readonly
numbersGenerator to generate numbers.
Readonly
paymentGenerator to generate payment related entries.
Readonly
personGenerator to generate people's personal information.
Readonly
productGenerator to generate product related entries.
Readonly
stringsGenerator to generate strings.
Readonly
timeGenerator to generate time and date.
Readonly
wordGenerator to generate words and sentences.
Readonly
zenGenerator with all generator functions for convenient use.
This is the faker module's main class containing all generators that can be used to generate data.
Please have a look at the individual generators and methods for more information.
Example
Output (formatted as JSON value)