Is manipulating the rng with the use of Math.random() many times legal?


#1

Is manipulating the rng with the use of Math.random() many times legal? For example, if my code feels that it’s unlucky, it can try to reset the ‘luck generator’.
If it’s not, please disable this feature by using separate rng for user code, or comment out those lines in my human solution(since i don’t want to be disqualified because of those things…and I need to sleep now, so I’ll not be able to remove that code myself when you answer.


#2

It is legal, but it’s also just superstition, since you get a separate random seed for each opponent, so changing it when it feels unlucky won’t lead to any future advantage. At most you could choose to call Math.random() a certain number of times to beat one particular opponent where the match is close, but since rankings will be based on hundreds of opponents, this is unlikely to provide a significant advantage.