rust-random / rand

A Rust library for random number generation.
https://crates.io/crates/rand
Other
1.68k stars 430 forks source link

Poisson distribution falls into an infinite loop for parameter λ=∞ #1291

Closed Thopic closed 1 year ago

Thopic commented 1 year ago

Pull request for issue #1290.

vks commented 1 year ago

Maybe we can also add a test for nan?

dhardy commented 1 year ago

@vks this returns NonFinite for both +inf and nan.

Thanks @Thopic.