Standard pseudo-random generators are not suitable for security/cryptographic purposes.
147 CATEGORY = 'Style Prompts'
148
149 def prompt_styler(self, text_positive, text_negative, style, log_prompt, auto_select_style=False, auto_refresh=False):
150 if auto_select_style or auto_refresh:
151 style = random.choice([template['name'] for template in self.json_data])
152
153 positive_prompt, negative_prompt = read_sdxl_templates_replace_and_combine(self.json_data, style, text_positive, text_negative)
154