C++ – Sorting a list in a random order

In this article, we will discuss how to sort a list of objects in random order, where the order is defined by the user.