Unit Testing with functions that return random results

后端 未结 11 1927
太阳男子
太阳男子 2020-12-05 01:25

I don\'t think that this is specific to a language or framework, but I am using xUnit.net and C#.

I have a function that returns a random date in a certain range. I

11条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 02:10

    If you want to check the quality of the random numbers (in terms of independance) there are several ways to do this. One good way is the Chi square test.

提交回复
热议问题