(self, num_digits)
| 107 | self.enc_tiktoken = tiktoken.encoding_for_model("gpt-4-1106-preview") |
| 108 | |
| 109 | def generate_random_number(self, num_digits): |
| 110 | lower_bound = 10**(num_digits - 1) |
| 111 | upper_bound = 10**num_digits - 1 |
| 112 | return random.randint(lower_bound, upper_bound) |
| 113 | |
| 114 | def logistic(self, x, L=100, x0=50, k=.1): |
| 115 | if x == 0: |