In the following code, I am using the seed function and the argument to the seed function is a random number.
Code: Select all
load_file("nrngui.hoc")
load_file("network of layers.ses")
n=15
objref syne[n], nse[n], nce[n], r
r = new Random()
proc layer () {
for j=0, n-1 {
v=int(r.uniform(50, 100))
M_Cell[j].dend syne[j] = new ExpSyn(0.02)
M_Cell[j].dend nse[j]= new NetStim(0.04)
nse[j].interval= 5
nse[j].number=1000
nse[j].start=0
nse[j].noise=1
nse[j].seed(v)
nce[j] = new NetCon(nse[j], syne[j])
nce[j].weight = 0.01
}
}
I was expecting that during various trials, there will be a different poisson process.
But every time, i run the simulation, it produces the same spike.
May you guide me, what should I do to have a different signal, each time I run the simulation.
Regards