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

Function randint

code/mathematics/fastmul.test.cpp:2–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1
2intx randint(int len) {
3 stringstream ss;
4 ss << rng() % 9 + 1;
5 for (int i = 0; i < len-1; i++)
6 ss << rng() % 10;
7
8 return intx(ss.str());
9}
10
11void test() {
12 /* Field testing: SPOJ {MUL,TMUL,VFMUL} */

Callers 1

testFunction · 0.70

Calls 1

intxClass · 0.85

Tested by

no test coverage detected