Function shuffle [src]
Shuffle a slice into a random order.
Note that this will not yield consistent results across all targets
due to dependence on the representation of usize as an index.
See shuffleWithIndex for further commentary.
Prototype
pub inline fn shuffle(r: Random, comptime T: type, buf: []T) void
Parameters
r: Random
T: type
buf: []T
Source
pub inline fn shuffle(r: Random, comptime T: type, buf: []T) void {
r.shuffleWithIndex(T, buf, usize);
}