Add a class to similat random triplet sampling