Thu, 3 Feb 2000 11:26:26 +1300 (NZD), Tom Pledger <[EMAIL PROTECTED]> pisze:
> class RandomGen g where
> mkGen :: Int -> g
> next :: g -> (Int, g)
> split :: g -> (g, g)
> split g = (mkGen seed, g') where (seed, g') = next g
It means that the original generator is no longer usable after
splitting (I generate one more number from it and then get the same
sequence as from a splitted one). I don't know if I could assume
otherwise. Maybe not, but then IMHO it should be written explicitly
in the Report to not use the original after splitting.
--
__("< Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
\__/ GCS/M d- s+:-- a22 C+++$ UL++>++++$ P+++ L++>++++$ E-
^^ W++ N+++ o? K? w(---) O? M- V? PS-- PE++ Y? PGP+ t
QRCZAK 5? X- R tv-- b+>++ DI D- G+ e>++++ h! r--%>++ y-
- Re: "Typo" in Haskell 98 Rand... Fergus Henderson
- Re: "Typo" in Haskell 98 ... Matt Harden
- "Typo" in Haskell 98 Random library Tom Pledger
- 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
