07.09.2010, 14:28
Quote:
I agree the default pawn random is nothing compared to this algorithm. I love when people ask me why I even made this, it makes me wonder if they every really used the pawn random. I know I use it very often on my game mode and it shows especially to players that play on a daily basis.
|
Quote:
Unfortunately I did miss a couple bugs the first time around. :S Its highly recommend to download this version. http://www.sendspace.com/file/j7en2j (First post link also updated) Fixed: MRandom not behaving like the default PAWN random i.e MRandom(2) now returns 0,1 not 0,1,2 (sorry if people started changing there scripts I really wanted that fixed before release.....it just slipped my mind) Fixed: MRandRange was returning garbage/not working this is fixed. NOTE: An added note while I was doing some extra testing I found out if you do MRandFloatRange(1.0, max) you could possibly end up with a float value less than 1.0 an easy work around for this is to pad it with a few more decimal places i.e MRandFloatRange(1.0000, max) will not dip below 1.0 (at least it didn't in several hundred calls) |