I do sympathise Padma. When we remember that computers are, by their nature, logical machines, we naturally assume they would indeed be logical and unthinking.
I'm currently trying to discover more about video codecs. I'm sure there is something logical there, but they seems to be designed to act randomly.
Reminds me of a cartoon I saw in the 80s, written along the lines of early Freak Brothers which claimed that, inside computers, are actually microscopic, super intelegent beings and the learning curve is actually a discovery of how these creatures think.