I wanted to get Java to mix the order of the numbers between -128 and 127. I think there’s no way to do that because the shuffling algorithm would break if I mess with arithmetic. But I did succeed in making Java think that 4 was 5!

a homeschooling blog about Simon, a young mathematician and programmer, and his little sister Neva. Visit https://simontiger.com
I wanted to get Java to mix the order of the numbers between -128 and 127. I think there’s no way to do that because the shuffling algorithm would break if I mess with arithmetic. But I did succeed in making Java think that 4 was 5!