aloisdg / aloisdg/RandomUtils

Should we check randomness of custom Random?

未关闭
#1 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C#
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

Hello,

It could be nice to check the Randomness of modified function. I am looking at you `NextFloat()` and `NextLong()`. I may to be sure that our modification keep an uniform distribution.

To check this we can implement a Test case with Chi-Square.

See :
- [Verify distribution uniformity/Chi-squared test - Rosetta Code](http://rosettacode.org/wiki/Verify_distribution_uniformity/Chi-squared_test#C)

Gamma :
- [Gamma function - Rosetta Code](http://rosettacode.org/wiki/Gamma_function#Java)
- [Special Function(s) for C# - CodeProject](http://www.codeproject.com/Articles/11647/Special-Function-s-for-C)

I started my own [implementation](https://gist.github.com/aloisdg/9a94b070d0caa5a32d80).

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。