-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to randomize buildList results #34
Comments
can you show me how Without seeing your code for the factory, my first inclination would be to make sure you are using |
@willryan My factory looks something like this (doesn't match the above example, but you get the idea)
|
ok, yeah, that needs to look like:
Without the |
on a semi-related note, the callback argument for Sync.each() provides a sequence number which you can use to adjust the output if you want. This can allow for seemingly-random-but-predictable sequences, if need be. |
I encounter this question, and when I use each() function, a new question was triggered by typescript, which said 'Type 'Generator' is not assignable to type 'number'.'. How can I deal with it ? Thanks |
BuildList always returns the same result, even though I'm using faker to try to auto generate values. Is there a way this can be randomized?
Example:
Expected
Actual
The text was updated successfully, but these errors were encountered: