make note about non-determism

master
NunoSempere 3 months ago
parent 1b552ffc9a
commit c61bae984c

@ -81,7 +81,7 @@ func drawFromDistributionWithReplacement(d pplKnownDistrib, r src) int64 {
for i, p := range d {
sum += p
if pp <= sum {
return int64(i)
return int64(i) // this introduces some non-determinism, as order of maps in go isn't guaranteed
}
}

Loading…
Cancel
Save