Good choice for fast random generator in Haskell

后端 未结 2 720
南方客
南方客 2021-01-19 06:55

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 neede

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-19 07:35

    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.

提交回复
热议问题