The free electrons in the n region are randomly drifting in all directions.
At the instant of the pn junction formation, the free electrons near the junction in the n region begin to diffuse across the junction into the p region where they combine with holes near the junction, as shown in Figure 1–19(b).