Solutions to random code problems