CodeSolved

Solved Programming Questions & Exercises

Randomly dividing people into equal groups of arbitrary size

Practice Normal 2195/ Download 19 Views New

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.

1 Answers

This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
Ai Python New

Submit answer

Submitting answers is currently unavailable.

×
×
Close