Hi!
ecd->math->Rand(-1,1)
always gives the same number. How to randomise it for smart devices? srand() or something else?
ecd->math->Rand(-1,1)
always gives the same number. How to randomise it for smart devices? srand() or something else?
A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.
main_struct->ecd->math->SetRandSeed(ClassERTimer::Count());
npc6.x =npc6.x + main_struct->ecd->math->Rand(-2,2);