Note: Normally there is no need to implement this interface directly,
unless you want to achieve a specific goal with it.
This interface enables you to use random generators from third party libraries such as pure-rand.
Instances are expected to be ready for use before being passed to any Faker constructor,
this includes being seed()ed with either a random or fixed value.
For more information please refer to the documentation.
Interface for a random number generator.
Note: Normally there is no need to implement this interface directly, unless you want to achieve a specific goal with it.
This interface enables you to use random generators from third party libraries such as pure-rand.
Instances are expected to be ready for use before being passed to any Faker constructor, this includes being
seed()
ed with either a random or fixed value.For more information please refer to the documentation.
Example
Since
8.2.0