Statistics: Posted by Domino — 20 Jan 2015, 21:36
Sheeo wrote:Thim wrote:I need to setup a random seed prior to when the normal seed is setup (as far as I can tell), so I need to setup something that gives me a way to make my calls to math.random() different every game. os.time() isn't working for me when I am using it in Blueprints.lua. Does anyone know what may be causing a problem, or know of another way to get random numbers without resorting to utilities.lua? (those methods also aren't working for me, and I don't think it's on my end)
You can't call os.time from within the sim.
Why doesn't GetRandomFloat/Int in utilities.lua work for you? They're used throughout the entire codebase.
Statistics: Posted by Sheeo — 17 Jan 2015, 02:59
Thim wrote:I need to setup a random seed prior to when the normal seed is setup (as far as I can tell), so I need to setup something that gives me a way to make my calls to math.random() different every game. os.time() isn't working for me when I am using it in Blueprints.lua. Does anyone know what may be causing a problem, or know of another way to get random numbers without resorting to utilities.lua? (those methods also aren't working for me, and I don't think it's on my end)
Statistics: Posted by ckitching — 16 Jan 2015, 13:33
Statistics: Posted by Resin_Smoker — 05 Dec 2014, 15:42
Statistics: Posted by Thim — 01 Dec 2014, 17:05
Statistics: Posted by Sheeo — 12 Nov 2014, 14:27