diff --git a/nodes.py b/nodes.py index 8782336..0b431a3 100644 --- a/nodes.py +++ b/nodes.py @@ -38,7 +38,7 @@ class InlineWildcardGenerator: rng = random.Random(seed) if random_mix: - count_to_pick = min(len(options), random.randint(1, mix_count)) + count_to_pick = min(len(options), rng.randint(1, mix_count)) else: count_to_pick = min(len(options), mix_count) @@ -86,4 +86,4 @@ NODE_CLASS_MAPPINGS = { NODE_DISPLAY_NAME_MAPPINGS = { "InlineWildcardGenerator": "Define Inline Wildcard", "WildcardPromptBuilder": "Build Prompt from Wildcards" -} \ No newline at end of file +}