Random Selection - Weighted Distribution


i have a list of 5 integers
i want to generate a random list of 25 items using only those original 5 integers
but i need to favor some items so that a particular number shows up more often inside the randomly generated list. Each item should have a specific weight,

Any ideas?

Is this random weight, or do you exactly need some item to occur 6 times, and another item 3 times, …?

thanks for the quick reply,

i dont really care about number of times, just quantity - percentage per item

Here’s a stochastic approach. For small selections the weighting will not be particularly accurate: stochastic.gh (27.6 KB)

Thank a lot David, it works for my current project