By Raúl Toral 10 hours course on the Summer school on statistical physics of complex and small systems, Palma 2011