On a condition satisfied by certain random walks