Genus distribution of random q-ary lattices