Import std.math.random
T[]
extend
Extend T[]
Shuffling every array, and sampling from it, by the thread's default generator or a Random.
-
Puts the elements in a random order, in place, each order as likely, from this thread's default generator.
-
Puts the elements in a random order, in place, each order as likely, from the generator.
-
countof the elements, none twice, in a random order, as a new array, from this thread's default generator. A count below 0 or above the elements' panics. -
countof the elements, none twice, in a random order, as a new array, from the generator. Acountbelow 0 or above the elements' panics.
Report an issue with this page or with FutureBlitz on GitHub.