OK, try understanding it this way. Firstly take two objects and let them touch. Randomized energy will be exchanged between them. A small change in the energy of one will effect an opposite change in the energy of the other but the total energy will not change.
dE1 + dE2 = 0
Now assume there is an entropy for each object which is a function of the amount of internal randomized energy. S = S(E) and that this entropy is a somewhat additive measure of how randomized a system is. With the small changes in energy there will be a small change in each entropy and we add them:
dS = dS1 + dS2 = B1 dE1 + B2 dE2
where B1 and B2 are the rate coefficients expressing B = dS/dE. These coefficients are again functions of the energy and can change in value as the objects change internal energy.
Substitute in the zero net total energy change and you get:
dS = (B1 - B2)dE1
Assume the 2nd law, that the entropy will grow due to randomization until it reaches a maximum value at which point assuming entropy is a smooth function of energy, you must have the two coefficients equal B1 = B2.
Note that if B1 > B2 increasing the energy E1 increases entropy and vice versa. So we see that heat flows towards the object with the bigger B value. A bit more analysis shows us that the quantity T = 1/B such that:
dE = 1/B dS = T dS
is more useful in that for most objects T will increase with increasing energy.
So we can restate the 2nd law as Heat between two objects flows toward the larger B or the smaller T. In short heat flows from hotter to colder objects.
[edit: Cut out some further less relevant ramblings.]