This is for a Blender 2.9 Addon Script, that might be why this is happening
I have this incredibly simple for loop using a randint and I kee