I am looking for generating 4 random numbers, between 1 and 10, with weight assigned to each number. For example:
number weight
1 3
2 2
3 6
... ...
10 3
I saw some articles on this (one on this site: https://softwareengineering.stackexchange.com/questions/150616/return-random-list-item-by-its-weight) but it doesn't exactly do what need. I need to generate 4 numbers between 1 and 10, without replacement; can't have 2,3,8,2.