Dist on Arrays during constrained randomization

In reply to dave_59:

Hi Dave,

The use of :/ was intentional as I want the whole range (wanted to assign weight per range and not per element) to have the weight and not each element having the weight.

About my original problem, I wanted to have some sort of dependency between all the elements. Say, with the above “dist”, I would want my whole array to follow the distribution by enforcing some sort of rule that the values of all the elements in the array, follow the weights provided in the “dist”.

For example: if we read out the array of size 100, we would want range (elements) [0:10] occur 20% (around 20 entries), [20:50] occur 60% (around 60 entries) and [70:90] occur 20% (around 20 entries). I am aware that for such a small sample size, exact % is not feasible. But this is the goal that I am after.

Please let me know if there is any issue with my understanding.