Distribution of the number of spanning regular subgraphs in random graphs