MCPcopy Create free account
hub / github.com/GilesBathgate/RapCAD / RandFunction

Method RandFunction

src/function/randfunction.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include <ctime>
25
26RandFunction::RandFunction() : Function("rands")
27{
28 addDescription(tr("Returns a vector of numbers between the given min and max values."));
29 addParameter("min");
30 addParameter("max");
31 addParameter("count",tr("The quantity of random numbers to create"));
32 addParameter("seed",tr("The seed number can be optionally used to give consistent results."));
33}
34
35Value& RandFunction::evaluate(const Context& ctx) const
36{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected