Distributions of unramified extensions of global fields