This code was created for a game project in which 10 houses need to be populated with 16 people. I wanted the distribution to be random, with no more than 3 and no less than 1 person per house and no remaining people or houses. JSbin link function getRandomPartitionsFromNumber(number, parts, mi...