Index Rand Library The implementation of finding the Rand index is necessary in clustering. The example from Python was taken as a basis, the logic was rewritten in C++. The main methods of the library look like this. Connection the library Using Checking values Python C++