Simon Peyton-Jones writes: > [...] > > Yes, that's a possible alternative. The current story says > "at least 30 bits"; you are suggesting [minBound..maxBound]. > In effect, you would mandate that every generator must have > genRange g = (minBound,msxBound). > > Seems like a reasonable alternative. Comments? That would affect the performance of some generators, by forcing them to use Integer internally, instead of Int. All the subtractive generators I've seen (all 2 of them) depend on using numbers internally, which have twice the range of the generated numbers. Regards, Tom
- Re: "Typo" in Haskell 98 Random l... Matt Harden
- Re: "Typo" in Haskell 98 Rand... Tom Pledger
- Re: "Typo" in Haskell 98 ... Fergus Henderson
- Re: "Typo" in Haskell 98 Rand... Tom Pledger
- Re: "Typo" in Haskell 98 Random librar... Fergus Henderson
- Re: "Typo" in Haskell 98 Random l... Matt Harden
- Re: "Typo" in Haskell 98 Random librar... Marcin 'Qrczak' Kowalczyk
- Re: "Typo" in Haskell 98 Random librar... Marcin 'Qrczak' Kowalczyk
- RE: "Typo" in Haskell 98 Random librar... Simon Peyton-Jones
- Re: "Typo" in Haskell 98 Random l... Fergus Henderson
- Re: "Typo" in Haskell 98 Random l... Tom Pledger
- Re: "Typo" in Haskell 98 Rand... Matt Harden
- Re: "Typo" in Haskell 98 Random l... Matt Harden