inline fn shuffle(r: Random, comptime T: type, buf: []T) void

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.

Parameters

r: Random,
T: type,
buf: []T,