Function vector_shuffle (o2scl)

O2scl : Function List

template<class vec_t, class data_t>
void o2scl::vector_shuffle(rng<> &r, size_t n, vec_t &data)

Shuffle the first n elements of vector data.

Note

If n is 0, this function silently does nothing.