futures_util::async_await::random

Function gen_index

Source
fn gen_index(n: usize) -> usize
Expand description

Return a value from 0..n.