The second "if" statement must be replaced with an "elif" statement. Then, 10% (0.2 * 0.5 = 0.1) will be replaced with randomly extracted tokens.
If you put two "if" statements in succession it can cause duplication(, random_token at same position), and tokens will be randomly replaced to a probability of 50%. Not a 10%.
The second "if" statement must be replaced with an "elif" statement. Then, 10% (0.2 * 0.5 = 0.1) will be replaced with randomly extracted tokens.
If you put two "if" statements in succession it can cause duplication(, random_token at same position), and tokens will be randomly replaced to a probability of 50%. Not a 10%.