I want to generate a panel wall using random length beams. but I also want to have a control of how many 0 mm length beams should be in the wall.
i.e.
generate a list of 10 random numbers between 0 and 2 with exactly 3 zero values
Hello
the most simple thing is to generate random double number take (10 -3) = 7 values that are not Zero then add 3 Zero than Jitter the list of number.
If you generate integer random number just make a domain [1, max+1] because the superior limit will never occur. Add 3 zero and Jitter
And post a file if you want some better answer, with just an image we have to guess what you did (integer or double random …)