# rand: add enumValueWithIndex · gitcafe/zig

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

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

Visibility: public

Requested revision: 1f0e9e4e1104dc1140de0f68778536d4f49a5cfa

Requested commit: 1f0e9e4e1104dc1140de0f68778536d4f49a5cfa

Commit: 1f0e9e4e1104dc1140de0f68778536d4f49a5cfa

Tree: f13b5fe7ce8ccb32aa59c15d8d0b9fa2438db236

Author: InKryption

Committer: InKryption

## Message

```
rand: add enumValueWithIndex

and reimplement enumValue in terms of it. Same rationale as shuffleWithIndex. Share small piece of code through MinArrayIndex.

```

## Parents

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

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