Markov simulation of genetic drift