Initial mass function of intermediate-mass black hole seeds