haskell / statistics

A fast, high quality library for computing with statistics in Haskell.
http://hackage.haskell.org/package/statistics
BSD 2-Clause "Simplified" License
300 stars 67 forks source link

DiscreteUniform not an instance of DiscreteGen #152

Closed schnecki closed 2 years ago

schnecki commented 5 years ago

Hi,

I was wondering how one can draw samples from DiscreteUniform as there is no DiscreteGen instance defined.

Thanks in advance.

schnecki commented 4 years ago

bump

Shimuuar commented 4 years ago

I'm going to update both rmwc-random and statistics and I'll add instance to UniformDiscrete.

dschrempf commented 3 years ago

FYI, I just bumped into this...