microsoft/qdk

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.3.1

Branches

Tags

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

Clone

HTTPS

Download ZIP

katas/content/random_numbers/random_two_bits/Verification.qs

12lines · modecode

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