A Random Search Technique for Training Neural Networks