You need to sign in or sign up before continuing.×
  • Custom User Avatar

    Done, and also changed the tolerance of the example test cases to +/- 1e-8 as it was still the 0.01 as in the old version. Thank you

  • Custom User Avatar

    Thank you!

  • Custom User Avatar

    Thanks for the input, I've added more fixed tests and more random tests. I will mark the issue as resolved now.

  • Custom User Avatar

    Agreed. I changed the tests to tolerate erros of +/- 1e-8.

  • Custom User Avatar

    I am not sure I understand the issue here, I tried running your code and I noticed it passes when (1, 5) and (1, 2) fail to show up in the random test cases for some reason.

    I have now added these two test cases to the fixed "advanced tests" to make sure they always show up.

    Does this solve the issue?

  • Custom User Avatar

    A probability can be expressed as a number between 0 and 1, a fraction or a percentage.

    Here one of the many sources you can find online

  • Custom User Avatar

    Ok, thanks for the heads-up!

  • Custom User Avatar

    I did, honestly I just haven't worked out how to do it yet :D any good pointers? Sorry I am still learning about testing!