An Introduction to Monte Carlo Techniques in Artificial Intelligence - Part I