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....
where to put the random seed ?
- oli_lab
- Member
- Posts: 1286
- Location: Brittany, France
- Contact:
http://oli-lab.org
Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces
follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social
Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces
follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social
- senso
- Site Admin
- Posts: 4427
- Location: France
- Contact:
in OnInitModule is probably the best place?
Olivier Sens
www.brainmodular.com
www.brainmodular.com
- oli_lab
- Member
- Posts: 1286
- Location: Brittany, France
- Contact:
yes it is, thanx:)
http://oli-lab.org
Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces
follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social
Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces
follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social
