CombinatoricsSelectPermutationInplaceT Method |
Select a random permutation, without repetition, from a data array by reordering the provided array in-place.
Implemented using Fisher-Yates Shuffling. The provided data array will be modified.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static void SelectPermutationInplace<T>(
T[] data,
Random randomSource = null
)
Parameters
- data T
- The data array to be reordered. The array will be modified by this routine.
- randomSource Random (Optional)
- The random number generator to use. Optional; the default random source will be used if null.
Type Parameters
- T
- The type of the data elements.
See Also