Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Random

Date2016-03-21 09:42
FromPeter Burgess
Subject[Csnd-dev] Random
Hi, I am trying to use random numbers in an opcode, preferably ones
that are seedable using the seed opcode. I have come across this in
BBCut.c:

x = (MYFLT) (csound->Rand31(&(csound->randSeed1)) - 1) / FL(2147483645.0);

Is this what I'm after?

I have tried the above line out, but I am getting an error regarding
the non-existance of a CSOUND member called "randSeed1". Is this error
because I am building a plugin opcode? I know that fact has caused
similar issues with other members of CSOUND that I have tried to use
in opcodes.

Cheers, Pete

-- 
http://algorythmradio.com