MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / randomBox

Function randomBox

Exercises/NoModules/Chapter 12/Soln12_08/RandomBoxes.h:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18inline Box randomBox()
19{
20 const int dimLimit{ 100 }; // Upper limit on Box dimensions
21 static auto random{ createUniformPseudoRandomNumberGenerator(dimLimit) };
22 return Box{ random(), random(), random() };
23}
24
25inline auto randomSharedBox()
26{

Callers 1

randomSharedBoxFunction · 0.70

Tested by

no test coverage detected