Page 1 of 1

Rand

PostPosted: Fri Apr 03, 2009 1:47 am
by Caaz Games
I've been looking for the code for the Rand function, searched the forum...
but i can't find it, can someone post it? i allready know how to edit it and junk but i forgot how it was...
thanks in advance :D

Re: Rand

PostPosted: Fri Apr 03, 2009 4:51 am
by skydereign
Like this? Not sure what you really want.
http://game-editor.com/forum/viewtopic.php?f=2&t=6195

Re: Rand

PostPosted: Fri Apr 03, 2009 1:29 pm
by jimmynewguy
lol. i was reading that topic and for random animations you would want

animpos = rand(nAnims);
since animindex is unchangable :)
i don't think it matters now, but just FYI

Re: Rand

PostPosted: Fri Apr 03, 2009 10:24 pm
by Caaz Games
Thank you Skydereign
that was the topic i've seen before.