Csound Csound-dev Csound-tekno Search About

Re: (pseudo) random generator

Date1997-12-15 11:50
FromRussell Pinkston
SubjectRe: (pseudo) random generator
>also, is there a method to obtain a single (irate) random number, say
>between 0 and 1?
>i dont want a series of random numbers but just a single one.

Use the i() function, which forces an i-time value from a k variable:

kval    rand    .5              ;kval is between -.5/+.5
ival    =       .5+i(kval)      ;ival is between 0/1


----------------------------------
Russell F. Pinkston, D.M.A.
Associate Professor of Composition
Director, Electronic Music Studios
School of Music
The University of Texas at Austin
Austin, TX 78712

[512-471-0865]