[Haskell-cafe] good choice for random number generator ?
Oleg Grenrus
oleg.grenrus at iki.fi
Mon Jul 25 19:30:24 UTC 2016
Seems that `vector-random-0.2` is incompatible with new fusion implementation of `vector-0.11`
Also due “recent” GHC being more strict about pragmas, build fails for all GHC >=7.2
Data/Vector/Random/Mersenne.hs:85:5:
The INLINE pragma for default method `random' lacks an accompanying binding
I edited bounds on Hackage to disallow invalid build-plans.
- Oleg
> On 25 Jul 2016, at 14:25, Oleg Grenrus <oleg.grenrus at iki.fi> wrote:
>
> I added vector-random to matrix.h.h.o build queue [1]:
>
> Will check whether it have some problems, and report here & upstream
>
> Oleg
>
> - [1] http://matrix.hackage.haskell.org/package/vector-random
>
>
>> On 25 Jul 2016, at 02:48, <briand at aracnet.com> <briand at aracnet.com> wrote:
>>
>> There's quite a few. Many are very old.
>>
>> I would have like to use vector-random and got this :
>>
>> Data/Vector/Random/Mersenne.hs:33:18:
>> Could not find module ‘Data.Vector.Fusion.Stream’
>> It is a member of the hidden package ‘vector-0.10.12.3 at vecto_1COyUuV1LrA1IjYnWfJnbs’.
>> Perhaps you need to add ‘vector’ to the build-depends in your .cabal file.
>> Use -v to see a list of the files searched for.
>>
>> Data/Vector/Random/Mersenne.hs:35:18:
>> Could not find module ‘Data.Vector.Fusion.Stream.Size’
>> It is a member of the hidden package ‘vector-0.10.12.3 at vecto_1COyUuV1LrA1IjYnWfJnbs’.
>> Perhaps you need to add ‘vector’ to the build-depends in your .cabal file.
>> Use -v to see a list of the files searched for.
>>
>> I wouldn't be opposed to fixing it, but I'm wondering at this point there isn't a better package to use instead.
>>
>> I'm looking for both integer and floating point random numbers, uniform and gaussian.
>>
>> gsl-random looks promising as does mwc-random.
>>
>> any other suggestions ?
>>
>> Thanks,
>>
>> Brian
>> _______________________________________________
>> Haskell-Cafe mailing list
>> To (un)subscribe, modify options or view archives go to:
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>> Only members subscribed via the mailman list are allowed to post.
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160725/9b4ea385/attachment.sig>
More information about the Haskell-Cafe
mailing list