Jump to content

Sorting algorithms/Bogosort: Difference between revisions

m
Line 310:
 
/* Sorts anything that provides random access iterators. */
template<typename RAIteratorRandomAccessIterator> void bogo_sort(RAIterator begin,
void bogo_sort(RandomAccessIterator begin, RandomAccessIterator end) {
RAIterator end) {
std::random_device rd;
std::mt19937 generator(rd());
Cookies help us deliver our services. By using our services, you agree to our use of cookies.