microsoft/qdk

Public

mirrored from https://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
dmitryv/select-updated

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

katas/content/random_numbers/random_bit/verification.qs

13lines · modecode

1namespace Kata.Verification {
2 @EntryPoint()
3 operation CheckSolution() : Bool {
4 Message("Testing one random bit generation...");
5 let randomnessVerifier = () => CheckUniformDistribution(Kata.RandomBit, 0, 1, 1000);
6 let isCorrect = IsSufficientlyRandom(randomnessVerifier);
7 if isCorrect {
8 Message("All tests passed.");
9 }
10 isCorrect
11 }
12
13}
14