MCPcopy Create free account
hub / github.com/circify/circ / random_rug_int_exp

Function random_rug_int_exp

circ_fields/src/test.rs:57–62  ·  view source on GitHub ↗

Samples a random integer with up to `max_bits` bits. A number with `i` is chosen with probability proportional to `2^-i`.

(rng: &mut impl Rng, max_bits: u32)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

sample_field_tFunction · 0.85
sample_field_vFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected