-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Hi! I'm currently building an island-based genetic calculations model and found a glitch with reproducibility.
Currently, the island engine passes the same random generator instance to each thread allocated for an island. Considering threads (code in the threads, actually) are naturally executed in an upredictable order (and so are random number picked from the rng), setting a seed on the rng have no desired effect - each program execution results are different.
I see two options actually:
- Clone rng for each island
- Make a constructor overload for the IslandEngine which accepts array of rng's (or rng provider callback) as a parameter.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels