Table of Contents

Struct SoundSynth.Noise

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

A seeded xorshift generator: the only source of randomness any sound uses.

public struct SoundSynth.Noise
Inherited Members

Constructors

Noise(uint)

public Noise(uint seed)

Parameters

seed uint

Methods

Bipolar()

The next number in [-1, 1).

public float Bipolar()

Returns

float

Gauss()

A roughly normal number, mean 0 and spread 1 (the sum of four uniforms).

public float Gauss()

Returns

float

LogRange(float, float)

A number spread evenly on a log scale between two positive bounds (pitches, sizes).

public float LogRange(float min, float max)

Parameters

min float
max float

Returns

float

Next()

The next number in [0, 1).

public float Next()

Returns

float

Poisson(float)

Seconds to the next event of a process happening perSecond times a second on average.

public float Poisson(float perSecond)

Parameters

perSecond float

Returns

float

Range(float, float)

A number in [min, max).

public float Range(float min, float max)

Parameters

min float
max float

Returns

float