Using random rewards and patience training to improve behavior