def getRandomQuery(X):
    n,d = X.shape
    
    i = randint(n)
    j = randint(n)
    while (j==i):
        j = randint(n)
    k = randint(n)
    while (k==i) | (k==j):
        k = randint(n)
    q = [i, j, k]
    
    score = getTripletScore(X,q)

    return q,score
Outputs a triplet [i,j,k] chosen uniformly at random from all possible triplets 
dataset/ETHPy150Open nextml/NEXT/next/apps/PoolBasedTripletMDS/algs/RandomSampling/utilsMDS.py/getRandomQuery