Randomly dividing people into equal groups of arbitrary size
Write a program that receives a list of people and randomly divides them into groups with a specified number of members. تعداد اعضای هر گروه توسط کاربر تعیین میشود. If the total number of people is not divisible by the number of members of each group, the last group may have fewer members.
For example, if there are 10 people and the number of members in each group is 3, the output will include three groups with 3 members and one group with 1 member.