WML vs lua Speedtest
Moderator: Forum Moderators
Re: WML vs lua Speedtest
In theory, it might be possible to use some kind of8790 wrote:I think one can use math.random in singleplayer, where OoS-ness is irrelevant. I remember mattsc saying he uses it in his AIs, because using WML [set_variable]rand= is too slow.
math.seed
to synchronise it at some point, for example when the first movement, attack, menu item selection or recall is done, depending on the conditions of it (for example its x1 and y1).