Finally figure out why randomly sync doesn't work on startup
Basically when initializing values to minimum or maximum, in the later stage where the difference is compared to a new one, the calculations overflow and result in it never overriding the initial values