View Single Post
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 07-17-2015 , 06:42   Re: Simple problem Random
Reply With Quote #2

GetRandomInt() has proven to be very unreliable for me in the past.
It's probably based on the HL2 SDK random function, which implementation is pretty poor.

You could use GetURandomInt instead. You can find a sample function here:

https://github.com/bcserv/smlib/blob.../math.inc#L149
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline