The latest version that can be jailbroken is 6.1.2.
It's really just random which version the phone will come on. There are still some being sold that are 6.1.2 or earlier, but increasingly more are on 6.1.3 and the likelihood is even higher now that 6.1.4 has been released.