Simulations of runaway electron generation including the hot-tail effect