diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-10-12 02:15:22 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-10-23 10:40:06 +1100 |
| commit | 0bba73c0d156df8f22c64ef4f4c50910fe31cf31 (patch) | |
| tree | 3a0b98b2985fdf4b4717aecab31464718d7dc162 /src/rt/sync/rust_thread.cpp | |
| parent | 83aa1abb19ee290655ed03053e26cdb2662242c4 (diff) | |
| download | rust-0bba73c0d156df8f22c64ef4f4c50910fe31cf31.tar.gz rust-0bba73c0d156df8f22c64ef4f4c50910fe31cf31.zip | |
std::rand: move Weighted to distributions.
A user constructs the WeightedChoice distribution and then samples from it, which allows it to use binary search internally.
Diffstat (limited to 'src/rt/sync/rust_thread.cpp')
0 files changed, 0 insertions, 0 deletions
