Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuEST-Kit/QuEST
/ getRandomPhase
Function
getRandomPhase
tests/utils/random.cpp:82–87 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
80
81
82
qreal getRandomPhase() {
83
84
// accuracy of PI does not matter here
85
qreal pi = 3.14159265358979323846;
86
return getRandomReal(-2*pi, 2*pi);
87
}
88
89
90
int getRandomInt(int min, int maxExcl) {
Callers
2
getRandomUnitComplex
Function · 0.85
getRandomRemainingArgs
Function · 0.85
Calls
1
getRandomReal
Function · 0.70
Tested by
no test coverage detected