Solarus-Games English Forum

Solarus => Development => Topic started by: Zefk on May 19, 2016, 10:10:53 AM

Title: Does Solarus have math random numbers?(Solved)
Post by: Zefk on May 19, 2016, 10:10:53 AM
Salutations,

Does Solarus have something like math.randomseed() and math.random()...? I can make own random system if not. I only noticed random movement in the Solarus documentation.

Ex: number = math.random()

-Zefk
Title: Re: Does Solarus have math random numbers?
Post by: Christopho on May 19, 2016, 10:27:16 AM
The whole standard Lua API is available, so yes.
http://www.lua.org/manual/5.1/
Title: Re: Does Solarus have math random numbers?
Post by: Zefk on May 19, 2016, 10:37:57 AM
Thank you Christopho!  :D