René Nyffenegger's collection of things on the web
René Nyffenegger on Oracle - Most wanted - Feedback

randh (Csound opcode)

kr      randh      kamp, kcps[, iseed[, isize[, koffset]]]
Outputs random numbers between +amp and -amp
kcps: Frequency of random values generated. Permits to generate random values at a rate less than the sampling or control frequency.
iseed: Seed value for the recursive pseudo-random formula. A value between 0 and +1 will produce an initial output of kamp * iseed. A negative value will cause seed re-initialization to be skipped. A value greater than 1 will obtain the seed value from the system clock. Default: 0.5.
This opcode will hold each new number for the period of the specified cycle. (This is actually the difference to randi)
See also rand and randi.


This opcode is used for the following instruments: