To study runaway electron generation in disruptions, we have extended the three-dimensional (two-dimensional in momentum space; one-dimensional in the radial direction) Fokker-Planck code, which describes the evolution of the relativistic momentum distribution function of electrons and the induced toroidal electric field in a self-consistent manner. A particular focus is placed on the hot-tail effect in two-dimensional momentum space. The effect appears if the drop of the background plasma temperature is sufficiently rapid compared with the electron-electron slowing down time for a few times of the pre-quench thermal velocity. It contributes to not only the enhancement of the primary runaway electron generation but also the broadening of the runaway electron distribution in the pitch angle direction. If the thermal energy loss during the major disruption is assumed to be isotropic, there are hot-tail electrons that have sufficiently large perpendicular momentum, and the runaway electron distribution becomes broader in the pitch angle direction. In addition, the pitch angle scattering also yields the broadening. Since the electric field is reduced due to the burst of runaway electron generation, the time required for accelerating electrons to the runaway region becomes longer. The longer acceleration period makes the pitch-angle scattering more effective.