On Thursday, 4 June 2015 at 17:04:06 UTC, jmh530 wrote:
        float output[len];

This creates a fixed-sized array of length `len` (using the deprecated syntax). Since the length is part of the type, it needs to be known at compile time.

You probably want a dynamic array instead. `auto output = new float[len]`

Also note that you're not seeding your random number generator, so it will produce the same sequence every time. You probably want `auto gen = Random(unpredictableSeed);`

Reply via email to