crandom() and random()


(jamez) #1

i have a few questions about these, but what is the range of the random numbers on these two?

i have got code for spawning in dm, but i want et set to spawn on a random spawn point rather than ifnone is selected the closest one and i have an array of all possible spawn points, i was just wondering how i could get a random number for it


(RR2DO2) #2

random: 0.f - 1.f
crandom: -1.f - 1.f


(jamez) #3

thanks heaps