# rand: add shuffleWithIndex · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/8828fe3a7d5db66ad3caae0c275b4917c6247b5e)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 8828fe3a7d5db66ad3caae0c275b4917c6247b5e

Requested commit: 8828fe3a7d5db66ad3caae0c275b4917c6247b5e

Commit: 8828fe3a7d5db66ad3caae0c275b4917c6247b5e

Tree: 9eeea24d04d9244919f8deb54659ddfcb03959d7

Author: InKryption

Committer: InKryption

## Message

```
rand: add shuffleWithIndex

and reimplement shuffle in terms of it. This allows the caller to specify an index type of a fixed bit width, allowing results to be independent usize.

```

## Parents

- [b40fc70188fd097e9e05b5c18b635b67b718380e](https://git.cafe/gitcafe/zig/commit/b40fc70188fd097e9e05b5c18b635b67b718380e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/8828fe3a7d5db66ad3caae0c275b4917c6247b5e?format=markdown)
