GeorgeP Posted May 30, 2012 Posted May 30, 2012 Hello.What is the best way to use engine.game.setSeed for engine.game.getRandom.In unix i use srand and time functions. I've searched in documentation and noticed that float engine.game.getTime has different use.is there any way for seed to be different every time ?Thank you.
unclebob Posted June 19, 2012 Posted June 19, 2012 Hi George, Function engine.game.getTime() simply retuns time spent in-game. Use time() function to set seed.
Recommended Posts