As shown in figure, ready to do a drawing program, winning personnel cannot repeat awards in
Creates an empty list x
Then add n1 random values in an empty list
When debugging found into x [[n1]], became a nested list
How to judge whether the j in x, is only one element in the x (n1)
Lead to judge the result is not, and cannot be deleted from the names of j element
Finally will repeat lottery
Can you tell me this how to solve
CodePudding user response:
Append to the extendCodePudding user response: