Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AberrantWolf/droprate
/ functions
Functions
16 in github.com/AberrantWolf/droprate
⨍
Functions
16
◇
Types & classes
3
↓ 3 callers
Method
keys
(&self)
src/lib.rs:206
↓ 2 callers
Function
gen_string_table
()
tests/integration_tests.rs:8
↓ 2 callers
Function
random_odds
(table: &mut ProbabilityTable<String, ThreadRng>, num_cycles: u32)
tests/integration_tests.rs:73
↓ 1 callers
Function
gen_fairly_random_string_table
()
tests/integration_tests.rs:20
↓ 1 callers
Method
random
(&mut self)
src/lib.rs:210
↓ 1 callers
Method
redistribute_weights
(&mut self, amount: f64)
src/lib.rs:327
Method
count
(&self)
src/lib.rs:202
Function
empty_table
()
tests/integration_tests.rs:33
Method
from_map
Create a new `RandomTable` from a [`HashMap`]. # Examples ``` use droprate::{RandomTable, ProbabilityTable}; use rand::prelude::*; use std::collecti
src/lib.rs:179
Method
new
Create a new instance of `RandomTable` with no options.
src/lib.rs:137
Function
populated_table
()
tests/integration_tests.rs:39
Method
pure_random
Run a trial from this as though it were a [`RandomTable`]. The table's results memory will not be affected, and as such future results from calling `r
src/lib.rs:314
Method
push
(&mut self, ident: T, weight: f64)
src/lib.rs:196
Function
report_random_probability
()
tests/integration_tests.rs:93
Function
report_reactive_probability
()
tests/integration_tests.rs:99
Function
seems_always_valid
()
tests/integration_tests.rs:63