I want to simulate a fair die roll N times without actually rolling a die. To be clear, I want to achieve something like this:
N = 1000
"1" showed up 185 times
"2" showed up 162 times
"3" showed up 158 times
"4" showed up 148 times
"5" showed up 182 times
"6" showed up 165 times
I can say that, for example, the number 1 shows up
random_binomial_distribution(N = 1000, probability = (1/6))
times. But I can't apply this for all faces, as the sum of all these results will likely not equal 1000.
How can I simulate the frequency of each face for N rolls without iterating through every roll?
normal_distribution
torandom_normal_distribution
as it was kind of wrong. So which distribution do I have to use here?binomial_distribution
? $\endgroup$