Function eos_rs::api::random::rand_u16

source ·
pub fn rand_u16<R: RangeBounds<u16>>(range: R) -> u16
Expand description

Generates a random number between the beginning and end of the range. If the range is unbounded, min and/or max values are bound to 0 ([u16::MIN]) and [u16::MAX] respectively.

The range must contain at least one element, or this will panic. Same if the start bound is excluded.