Distribute a fixed number of events to the days of a year following a specific distribution I am trying to distribute a given (fixed) number of events of a year over the respective year. The empirical distribution can be modelled with a Poisson distribution because there are usually only between 1 and 14 events per day.
I tried looping through the days of the year and generating a random number of events from a poisson distribution. The point at which I struggle is to distribute ALL events. If I overestimate the distribution, there are no events at all at the last weeks of the year and if I underestimate the distribution, there are several events left but they all need to take place in the considered year.
Is there any way to distribute all events?
Thanks a lot for your help and inspirations!

The conditional distribution of a collection of independent Poisson variates, given their total, $n$, is a multinomial distribution with $p$-parameters proportional to the corresponding Poisson rates. That is, $p_i = \lambda_i/\lambda_\text{total},\: i=1,2,...,k$, where $\lambda_\text{total}=\sum_i \lambda_i$.
An easy way to randomly allocate them is discussed in the "unequal" case here How to sample n
observations from a multinomial distribution using binomial (or poisson) sampling?. Essentially you generate one value, then given that value, compute the conditional multinomial distribution of the remainder given what has already been generated, progressing through all the values and updating the conditional distribution for the remaining "cells" at each step; whatever is left at the last cell is the count value for that cell.
