make_shuffle_iterator
#
-
template<class IndexType, class URBG>
shuffle_iterator<IndexType> thrust::make_shuffle_iterator(
)# make_shuffle_iterator
creates ashuffle_iterator
from anIndexType
andURBG
.See also
- Parameters:
n – The number of elements in the permutation.
g – The
URBG
used to generate the random permutation.
- Returns:
A new
shuffle_iterator
which generates a random permutation of the input range.