From f5b37fcd55e9e5b57ace2c7136fe6da193abf03a Mon Sep 17 00:00:00 2001 From: SineSwiper Date: Sun, 22 Jun 2025 11:37:11 -0400 Subject: [PATCH] Fix integer RNG in Random Number node The input for min/max demands floats, but the base random.randint will complain if float types are passed to it. --- WAS_Node_Suite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WAS_Node_Suite.py b/WAS_Node_Suite.py index eda7015..4222cfc 100644 --- a/WAS_Node_Suite.py +++ b/WAS_Node_Suite.py @@ -12538,7 +12538,7 @@ class WAS_Random_Number: # Return random number if number_type: if number_type == 'integer': - number = random.randint(minimum, maximum) + number = random.randint(round(minimum), round(maximum)) elif number_type == 'float': number = random.uniform(minimum, maximum) elif number_type == 'bool':