Skip to content

Suggestion: Deterministic randomisation #432

Open
@iorlas

Description

@iorlas

Hi!

First, thank you! This is really cool!

I just want to point out the problem. Sometimes you want to retain the randomization order to make some predictable / deterministic runs. For example, before running the bot with scenario, ideally you want to have a quick dry-run, analyze it's results, and only then run it up.

As a suggestion, random.choice could be replaced with a randomizer passed in the initializer. For example, the end-user could instantiate Random class from random module with some seed value, and pass it down.

I might be able to create a PR for it, but not promising yet. Still, it might come handy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions