set delays to 100 instead of 1000 range
This commit is contained in:
parent
5a6748c8c6
commit
0e20ef1815
2 changed files with 877 additions and 877 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -5,7 +5,7 @@ import random
|
||||||
def replace_after_pattern(text):
|
def replace_after_pattern(text):
|
||||||
# Define a function to generate a random number between 950 and 1050
|
# Define a function to generate a random number between 950 and 1050
|
||||||
def random_replacement(match):
|
def random_replacement(match):
|
||||||
return f"[after={random.randint(950, 1050)}]"
|
return f"[after={random.randint(95, 105)}]"
|
||||||
|
|
||||||
# Use re.sub to find all instances of '[after=1000]' and replace with random number
|
# Use re.sub to find all instances of '[after=1000]' and replace with random number
|
||||||
result = re.sub(r'\[after=1000\]', random_replacement, text)
|
result = re.sub(r'\[after=1000\]', random_replacement, text)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue