Game Development Community

Setting large random number generator seeds

by Ian Omroth Hardingham · in Technical Issues · 03/21/2011 (3:29 am) · 1 replies

Hey guys.

echo(getRandom(1000000,10000000)

shows somethinge+006

If I use setRandomSeed with a ye+00x number it thinks I've just set it to y.

I would like to get a non e version of large numbers - how do I do that?

Thanks,
Ian


#1
03/21/2011 (5:08 am)
I think this happens because TorqueScript only supports up to 6 figure sums. This is probably something that needs to be fixed in a actual release but there are some resources in the mean time that fixes this. Try this http://www.garagegames.com/community/resources/view/16983 or this http://www.torquepowered.com/community/forums/viewthread/35604. I think I used the latter.