Login Register
Bowne Report: Biden’s Foreign CIA Army Invasion Mocks National Security --- --- Former MSNBC Anchor Krystal Ball Blasts Minorities Working For ICE – “You Have No Moral Compass, These People Hate You!” --- --- Wednesday Live: RED ALERT! Right Now, The Deep State Is Attempting To Stage A Pentagon Coup To Remove Hegseth Ahead Of The Main Coup Targeting Trump & Americans! Tune In NOW For Latest Developments & How We The People Can Stop This Treasonous Operation Dead In Its Tracks! Must-Watch/Share! --- --- Must-See Interview: UK Woman Arrested For Calling Her Attacker “Faggot” In Text Message – Cops Broke Into Her Home As She Bathed! --- --- Zelensky’s Meeting With US Envoy Cancelled After No Real Progress In 5-Hour Moscow Talks --- --- Afghani In Sweden Charged With Murder And Dismemberment Of Friend’s Body To Store In Freezer --- --- Career Criminal Arrested for Throwing Elderly Man on Train Tracks in Chicago --- --- Tunisian Sexually Assaults Woman In Germany, Attacks Security Guards With Broken Bottle, Then ‘Riots’ At Police Station --- --- Illegal Alien Trucker Charged With Killing Newlyweds Was Released by Biden, Granted CDL by Sanctuary California --- --- Anti-ICE Militant Charged With Throwing Molotov Cocktails at Federal Building in Los Angeles --- ---



[Reply]
Forum Index > AIM/ICQ Discussion
Dice Roller RNG
Posted on: 03-06 3:59 am
metaphysician

Just as a heads up, my gaming group has been using the restored client and its dice roller for our gaming. I think there might be something wrong with the RNG. I don't have a full statistical analysis or anything, but it seems to skew direly low, with far more 1s than probability would indicate.

For reference, we do a lot of 10 sided dice ( White Wolf games ), so it could be connected to the system handling larger dice size numbers incorrectly.

Hope this is at least helpful information.
Posted on: 03-08 2:10 am
Wildman

Beta Tester

hmm the internal class rnd() is used which is a windows API random number generator.. maybe more randomness is needed

Hououin - your friendly neighborhood AIM server operator
Posted on: 03-19 2:00 am
metaphysician

Beta Tester

Okay, on further play/examination, it looks like the dice roller function is using the time to seed the RNG, because rolls done at roughly the same time are producing the same dice outcomes for two or more players. However, they clearly aren't providing *much* randomness, because the same strings of numbers are turning up repeatedly within the same session ( we're talking "identical 10 digit string recurring five minutes later" ). I don't know how its producing the numbers, but it must not be using nearly enough randomness.
Posted on: 03-19 2:19 am
cglasgow99

Beta Tester

The problem may be that you're using rand instead of rand_s, as mentioned in this article.

https://en.wikipedia.org/wiki/CryptGenRandom

Basically, original Windows API random # generator is kinda weaksauce. They made a stronger one.
< - 1 - >

[Reply]