generate random numbers with uniform distribution whose sum is given value
Answers
Answered by
0
i want to generate nn random numbers ui∈[0,2κ+1)ui∈[0,2κ+1) such that ∑ui=c∑ui=c modmod 2κ+12κ+1, where c is a constant.
Also, taking n−1n−1 random numbers and subtracting their sum from b⋅2κ+1+cb⋅2κ+1+c, where b⋅2κ+1b⋅2κ+1 is the closest multiple of 2κ+12κ+1 that is greater than sum of the n−1n−1 random numbers, to get the nthnth random number a good solution?
P.S. I want to know if there's a solution to this problem that'll ensure good statistical properties
Also, taking n−1n−1 random numbers and subtracting their sum from b⋅2κ+1+cb⋅2κ+1+c, where b⋅2κ+1b⋅2κ+1 is the closest multiple of 2κ+12κ+1 that is greater than sum of the n−1n−1 random numbers, to get the nthnth random number a good solution?
P.S. I want to know if there's a solution to this problem that'll ensure good statistical properties
Similar questions