O'Reilly logo
  • Ivan Zderadicka thinks this is interesting:

.choose(&[0, 1, 2, 3, 4, 5])

From

Cover of Network Programming with Rust

Note

gen_range would be better