Gen::below
pub fn below(int n) -> int Import
Source: use arbitrary::{Gen}; compiler/src/prelude/arbitrary.hy Uniform in [0, n); 0 when n <= 0.
Called on a Gen value as value.below(…).
Parameters#
| Name | Type |
|---|---|
n | int |
Returns#
int
See also#
Gen: A seeded source of random values.Gen::new: A generator seeded withseed(0 is replaced by a fixed non-zero seed), starting at size 10.Gen::size: The current size bound.Gen::resize: Sets the size bound; negative sizes become 0.Gen::bits: 32 random bits.Gen::int_in: Uniform in[lo, hi].Gen::one_in: True one time inn.Gen::len: How many elements a collection gets: up tosize, none once the value is nesteddeep().