Commit 89c30249 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

some corrections in the extensions

parent 96760b1a
......@@ -271,7 +271,7 @@ struct Random : public AbstractFunction<double, WorldVector<double> >
double operator()(const WorldVector<double> &x) const
{
return mean + amplitude * ((std::rand() / static_cast<double>(RAND_MAX)) - 0.5);
return mean + 2.0*amplitude * ((std::rand() / static_cast<double>(RAND_MAX)) - 0.5);
}
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment