generating stochastic coloured noise for many oscillators
#include &lt;math.h&gt;
#include &lt;stdio.h&gt;
#include &lt;stddef.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;iostream&gt;
#include &lt;random&gt;

using namespace std;


Please don't put all the standard identifiers into the global namespace.  Use the C++ versions of the libraries, and qualified names.  If you really must drag some identifiers in (as is often required for argument-dependent lookup), be specific and keep their scope small.
And try not to mix C standard I/O and C++ streams if possible.
#include &lt;cmath&gt;
#include &lt;cstddef&gt;
#include &lt;cstdlib&gt;
#include &lt;iostream&gt;
#include &lt;random&gt;