You have 5 groups and in each group is a random number of users chosen from the entire group of 50 users. The users in each group are randomly chosen (not sequentially taken) from the larger, entire group of 50. Every user is in exactly one and only one group, and no user is missing. Change numUsers and numGroups as needed for your situation.
It's not clear what you mean. A for loop has to have an index (loop iteration variable), though you're free to use it or ignore it in the loop. Also if you want A to change (somehow) in the loop, you're going to have to have A on the left side of an equals sign.
Best Answer