Understanding Control and Test Groups

Hi Bruno,
I have a question about the permutation test:
If we have 2 groups - control and test group . And, if we mix all the weight loss values into a list called all_values. How can we differentiate with regards to whether the value belongs to control or test group, if we go about placing them randomly in two groups based on random value generated. Can you please help me understand this concept? Thanks in advance.

Hey, Gaurav. Sorry for the late response.

It’s the random selection that determines what are the control and test groups. This is a simulation.