an open-source digital signal processing and sound synthesis language
about · links · contact

rrand/srrand

pseudo-random number generator

    [note: These older random number generators have been superceded by the Orand object.]

Synopsis

    #include <ugens.h>

    srrand(x)
    unsigned x;

    float rrand();

Description

rrand() is a modification of the unix rand generator which will return a floating point value between -1 and +1. It is seeded with srrand(x) where x is any value range 0 to 1.