class LinearNoise

Generates noise with an almost linear spectrum (white noise).

This object can be used alone, or it can be passed into the constructor of the Random class for more functionality.

Inheritance

class LinearNoise : NoiseGenerator

Constructors

LinearNoise ()Constructs a new linear noise generator.

Methods

float Random (const float)Returns a new random value from the given seed 'x'.

Reference

method LinearNoise ()

Constructs a new linear noise generator.


method float Random (const float x)

Returns a new random value from the given seed 'x'.

When using the same seed, the generator will always return the same random value. The return value range is -1.0 ~ 1.0.