View Single Post
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 10-16-2009 , 06:55   Re: GetRandomInt/SetRandomSeed
Reply With Quote #4

I didn't check to see what RoundFloat was returning. Previously, I had just tried using GetRandomInt as i had in the past, and it kept giving me 24, every single time.

I did some searching, saw a post about using setrandomseed, thought I'd try it, but still 24. So I posted here late in tired frustration!

New day, clear head, I'm gonna take more stabs over it with coffee.

EDIT Update: I give up. Once you get some playtime under your belt and a map changes, it at least randomizes somewhat. I guess due to the nature of the call itself, when you first start the server up, it's just always going to be the same random Int. Look forward to 1.3 =)

X
__________________

Last edited by XARIUS; 10-16-2009 at 08:02.
XARIUS is offline