Custom random generator implementation attempted
Find pairs with the same sum