We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2001b38 commit b2e66b1Copy full SHA for b2e66b1
src/xtd.core/include/xtd/random.hpp
@@ -235,6 +235,14 @@ namespace xtd {
235
shuffle(span_values);
236
return values;
237
}
238
+ /// @brief Performs an in-place shuffle of an array.
239
+ /// @param values The array to shuffle.
240
+ template<class collection_t>
241
+ collection_t shuffle(const collection_t& values) const {
242
+ auto result = values;
243
+ shuffle(result);
244
+ return result;
245
+ }
246
/// @}
247
248
protected:
0 commit comments