/************************************************************************************
Flag MODELTYPE to decide if Type I or Type C model to be loaded and createNewSyn.hoc
& createNewSyn2.hoc set syn wt correspondly;
0: Type I Model
1: Type C Model
2: Passive Model
*************************************************************************************/
printf("regular & asynchronous input. frequency = %d \n", freq)

objref r
r = new Random()

for i=0, totSyn-1 {  //totSyn is the total # of synapses
	Ens[i].start=0 //Ens: the reference to the NetStim
	Ens[i].number=1000000000000000000000000000000
	Ens[i].noise=0
}

intv = 1000/freq
for i=0, totSyn-1 {
	Ens[i].interval = intv //set each syn. wt
	Ens[i].start = r.uniform(0, intv)
}
run()