std.rand.Random: add enumValue() (#9583)

* add Random.enumValue()

* edits suggested by review

* applied zig fmt

* Rewrite to use std.enums.values

Implemented pfgithub's suggestion to rewrite against this function, greatly simplifying the implementation.

Co-authored-by: Justin Whear <justin@economicmodeling.com>
62fe4a0ba8Justin Whear committed on 8/19/2021, 7:18:23 PM· committed by GitHubparent7e7d67d
1 file changedLine totals unavailable