The addition of variable numbers of random nucleotides by terminal deoxytransferase in the N regions of heavy chain immunoglobulin genes. N regions are found at the V-D and D-J recombinational junctions.