MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / randint

Function randint

code/mathematics/fft.test.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86intx randint(int len)
87{
88 stringstream ss;
89 ss << rng() % 9 + 1;
90 for (int i = 0; i < len-1; i++)
91 ss << rng() % 10;
92
93 return intx(ss.str());
94}
95
96void test() {
97 /* Field testing: Kattis {polymul1,polymul2}, SPOJ {MUL,TMUL,VFMUL} */

Callers 10

testFunction · 0.70
testFunction · 0.70
testFunction · 0.70
checkFunction · 0.50
test2Function · 0.50
testFunction · 0.50
simulated_annealingFunction · 0.50
testFunction · 0.50
testFunction · 0.50

Calls 1

intxClass · 0.85

Tested by

no test coverage detected