Skip to content

Add possibility to set initial seed#33

Closed
fred-labs wants to merge 1 commit intosecorolab:develfrom
fred-labs:add_seed_param
Closed

Add possibility to set initial seed#33
fred-labs wants to merge 1 commit intosecorolab:develfrom
fred-labs:add_seed_param

Conversation

@fred-labs
Copy link
Copy Markdown
Contributor

@fred-labs fred-labs commented Oct 9, 2025

In order to create reproducible variations, allow the initial seed to be set externally.

Test

Using the same seed should always result in the same variants.


variations = custom_args["variations"]
if "seed" in custom_args and custom_args["seed"] is not None:
random.seed(int(custom_args["seed"]))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to cover the case where the seed is not passed in the args.

@argenos argenos closed this in 4db5fa0 Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants