Page 1 of 1

Posted: 12 May 2015, 02:01
by oli_lab
where to put the random seed ?

I put it like that...it is working but is it good practice ?

void wander::onGetParamInfo(int ParamIndex, TParamInfo* pParamInfo)
/* initialize random seed: */
srand(time(NULL));


thanx

* a wander behaviour on the way....

Posted: 13 May 2015, 18:34
by senso
in OnInitModule is probably the best place?

Posted: 15 May 2015, 17:53
by oli_lab
yes it is, thanx:)