We investigated the motion of two-head Brownian motors by introducing a model in which the two heads coupled through an elastic spring is subjected to a stochastic flashing potential. The ratchet potential felt by the individual head is anti-correlated. The mean velocity was calculated based on Langevin equations. It turns out that we can obtain a unidirectional current. The current is sensitive to the transition rates and neck length and other parameters. The coupling of transition rate and neck length leads to variations both in the values and directions of currency. With a larger neck length, the bi-particle system has a larger velocity in one direction, while with a smaller neck length, it has a smaller velocity in the other direction. This is very likely the case of myosins with a larger neck length and larger velocity in the positive direction of filaments and kinesins with a smaller neck length and smaller velocity in the negative direction of microtubules. We also further investigated how current reversal depended on the neck length and the transition rates.