Randomize change transaction output index.

Based on a diff created by @dajohi.