Hello.
I am doing a project which needs to generate non-overlap random integer tuple.
Suppose I have a 100-dimension vector, I need to choose 3 different indices among the 100 numbers, a naive implementation maybe:
index1 = torch.randint(0, 100, [1])
index2 = torch.randint(0, 100, [1])
while(index2 == index1):
    index2 = torch.randint(0, 100, [1])
index3 = torch.randint(0, 100, [1])
while(index3 == index1 or index3 == index2):
    index3 = torch.randint(0, 100, [1])

which is time-comsuming…
Is there a more efficient way to do the jobs ? as I need to generate many tuples at one time.
Thanks.