On The Use of Randomness in Computing To Perform Intelligent Tasks