Implemented randomisePairings