function simulateMoran() {
const initial = generationsWF[0]
const generations = [initial];
for (let i = 0; i < (r-1) * N; ++i) {
let pop = generations[generations.length - 1]
let offspring = pop.map(genotype => genotype)
const [i, j] = randWithReplacement()
offspring[j] = offspring[i]
generations.push(offspring)
}
return generations
}