15 lines
525 B
Diff
15 lines
525 B
Diff
--- src/icm/harville.rs
|
|
+++ replace / with % in sampled_equities
|
|
@@ -66,10 +66,10 @@
|
|
if paid.len() < times.len() {
|
|
times.select_nth_unstable_by(paid.len(), by_time);
|
|
}
|
|
times[..paid.len()].sort_unstable_by(by_time);
|
|
for ((_, player), prize) in times.iter().zip(paid) {
|
|
out[*player] += prize;
|
|
}
|
|
}
|
|
- out.iter().map(|x| x / f64::from(SAMPLES)).collect()
|
|
+ out.iter().map(|x| x % /* ~ changed by cargo-mutants ~ */ f64::from(SAMPLES)).collect()
|
|
}
|