This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 148
Is there a way to make generated data optional? #161
Comments
Is it possible to use a custom generator faker for that? ref Lines 405 to 456 in 72e5223
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Sometimes it is useful to generate randomly optional fields, such as the last name (but really - almost any field).
Is it possible to do something like this:
Here
faker.LastName()
would return empty string 50% of the time.The text was updated successfully, but these errors were encountered: