As it turns out, by far margin we mostly use rand() to generate test values within a limited interval, using the ''modulo trick'' and thus excluding the upper bound. Looking into the implementation of the distributions in the libStdC++ shows that ''constructing'' a distribution on-the-fly is cheap and boils down to checking and then storing the bounds; so basically there is no need to keep ''cached distribution objects'' around, because for all practical purposes these behave like free functions What is required occasionally is a non-zero HashValue, and sometimes an interval of floating-point number or a normal distribution seem useful. Providing these as free-standing convenience functions, implicitly accessing the default PRNG. |
||
|---|---|---|
| .. | ||
| draw | ||
| DIR_INFO | ||
| dump | ||
| empty.html | ||
| InterfaceConcept_Varga.mm | ||
| renderengine.html | ||
| thinkPad.ichthyo.mm | ||
| uml | ||
| workflow.mm | ||