trand

Files: trand.h, trand.c

Triggered random number generator.

Functions

sp_trand_create(sp_trand **trand)
sp_trand_init(sp_data *sp, sp_trand *trand)
sp_trand_compute(sp_data *sp, sp_trand *trand, SPFLOAT *trig, SPFLOAT *out)
sp_trand_destroy(sp_trand **trand)

Optional Parameters

min: Minimum value to use.
(Default value: 0)
max: Maximum value to use.
(Default value: 1)

Inputs

trig: When non-zero, will create a new random value.

Outputs

out: Signal output.