The simplest way to use Datafaker to generate fake data is by instantiating the Faker using the default constructor.
This will instantiate a Faker using the English locale.
To use Datafaker with a different locale, you can supply on in the constructor as such:
In case you want to mix locales, the easiest way to do so is to create a Faker per locale, and mix between those fakers. For an example, see below, which produce something like the following:
8708 شارع قطر, مدينة خولة جناح 385 127 شارع العشرين, معبر عبدالله Schlangenlaan 461a, Oost Jessamyingen, WV 8234 ZX 1 hoog Gritlaan 52, Margiesmeer, OK 1083 VE
Repeatable random results¶
To generate a more predictable random result, it's possible to provide a seed value to the Faker.
When providing a seed, the instantiation of Fake objects will always happen in a predictable way, which can be handy for generating results multiple times.