Page 1 of 1

object with objref in mod file

Posted: Tue Jul 04, 2006 9:02 pm
by okanerkaymaz
i have writen a mod file that was stochastic ion channel
i have a error but i don't know this wrong
where do i do wrong ?

FUNCTION gaus(){
local objref geu error line
l=0
s=1
geu = new Random() // i want to use random() object
geu.uniform(0, 1)

z=s*sqrt(2*log(1/(1-geu)))
feu=geu.repick()
gaus=l+z*sin(2*PI*feu)
}

Re: object with objref in mod file

Posted: Mon Jun 22, 2009 10:43 pm
by Bill Connelly
I know this post is 3 years old, but in case anyone finds this by searching, try localobj instead of local objref.