Csound Csound-dev Csound-tekno Search About

Random numbers

Date1998-07-15 18:25
Fromjpff@maths.bath.ac.uk
SubjectRandom numbers
Message written at 12 Jul 1998 21:49:52 -0400

There does seem to be some confusions in the whole area of the random
number generators in Csound.

First, the rand, randh and randi opcodes have a simple (trivial) small
cycle pseudo randon number generator.  They are not affected by the
seed opcode, but only the optional seed argumrnt.  Each opcode is
independednt, and follows the same sequence.

The noise generators on the other hand use the ANSI C rand function,
and all share the SAME sequence, which is reasonably long cycled (30
bit typically).  

It would help if people where clear as to which one they mean in these
discussions. 

==John ffitch