Electric conduction in semiconductors: a pedagogical model based on the Monte Carlo method