Archive 19/01/2023.

Random numbers in AngelScript

rogerdv

I have been looking for a function to generate random numbers in AngelScript, but I cant find one. I have tried random (with one and two parameters), brandom, rand, everything I found in google, but nothing works. The random function was supposed to be here , but seems that it was removed or something. Any idea?

weitjong

Doesn’t Urho already expose its Math::Random() method to scripting?

rogerdv

Excellent, I thought the language had its own native function (Lua does).