Jump to content

[SOLVED] Scope of rand()/srand()


photo

Recommended Posts

Posted

Regarding the RNG in Unigine, is it sufficient to call srand() once in init() or does it need to be called every time we visit the RNG?

Posted

Hello,

 

It's sufficient to call srand() once in init() (only if you don't want to change the seed every time)

×
×
  • Create New...