Thread: Random numbers
View Single Post
Old 31/08/2019, 07:51 AM   #7
GTLS's Avatar
Join Date: Aug 2014
Location: India
Posts: 1,044
Reputation: 115
Default Re: Random numbers

The current random number logic is BY FAR the most accurate than in the past. Although, you can create your own algorithm using your formula to try to create a better random generator but the odds are you will end up with more predictable algorithm. - Read here

current PRNG method is really good. You can test it easily. You can Generate 200-300 or more values using any algorithm, and divide the numbers's range into half. (For eg, if you created random numbers between 0 to 1, use 0.5 as mid point). Now, count how many random numbers are generated less than 0.5 and more than 0.5. If they are close to 50%, it means algorithm is almost perfect.

I don't help for rep. I help cuz I was helped in the past.

Retired from SAMP Scene. Might open SAMP Forums once in a while.

Some treats for ya. Click em
Basic House System
Simple Speedo
Base Login/Register Script

GTLS is offline   Reply With Quote