This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Function
Shuffle a slice into a random order, using an index of a specified type to maintain distribution across targets. Asserts the index type can represent buf.len.
Indexes into the slice are generated using the specified Index type, which determines distribution properties. This allows for results to be independent of usize representation.
Shuffle a slice into a random order, using an index of a specified type to maintain distribution across targets. Asserts the index type can represent
buf.len.Indexes into the slice are generated using the specified
Indextype, which determines distribution properties. This allows for results to be independent ofusizerepresentation.Prefer
shuffleif this isn't important.See
intRangeLessThan, which this function uses, for commentary on the runtime of this function.