Molecular Machines Like Myosin Use Randomness to Behave Predictably