Yue Posted August 19, 2018 Share Posted August 19, 2018 Number Random Script Lua? Quote Link to comment Share on other sites More sharing options...
Solution macklebee Posted August 19, 2018 Solution Share Posted August 19, 2018 with inherent lua: http://www.lua.org/manual/5.1/manual.html#5.6 math.randomseed(Time:Millisecs()) myvariable = math.random(min,max) with LE functions: https://www.leadwerks.com/learn?page=API-Reference_Object_Math_Random Math:SeedRandom(Time:Millisecs()) myvariable = Math:Random(min,max) In both cases, you need to set the minimum and maximum values (min & max) that the random number should be equal to or fall between. Just FYI - there is a search available in the upper right-hand corner of the forum that can allow you to search for stuff like this : 1 1 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.