Bytecode Manipulation via Reflection API and Javassist
I’ve recently come across an interesting puzzle, it went like “Guess the next value of Math.random()”. How could you possibly do it? Well, since the output is unpredictable by definition, the only option left for many of us is cheating. Once I successfully “solved” the puzzle by crippling the poor Math class to a worrying…