I have a use-case where I want to test a program for some gambling game. The random numbers I need should be in a very small area (1 to 9), and there's no realquality needed. I found out, that the standard generator of Haskell is too slow for me, so anybody whith better ideas?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
The mersenne-random-pure64 package is very fast, as is mwc-random.
回答2:
I found out about the Xorshift random gen, which perfectly suits my needs. I'm going to implement it in Haskell and put the implementation online.
It's done: Xorshift is uploaded to hackage, and needs some improvement by me.