Login Register
EXCLUSIVE INTERVIEW: Mike Lindell Joins Alex Jones To Lay Out New Developments In The Exploding Somali Fraud Case Ingulfing The Democratic Party! --- --- French Mother Convicted Of Smuggling Cocaine To Egyptian Ex-Boyfriend, Who Is Serving Prison Sentence For Killing Her 5-Year-Old Son --- --- EMERGENCY COLOR REVOLUTION COUP ALERT: Former Prosecutor & Deep State Investigator Lionel Joins Alex Jones To Expose The Latest Developments In The Attempted Deep State Operation To Trigger A Civil War & Bring Down America! --- --- What’s The Likelihood Of A NATO-Russian Non-Aggression Pact? --- --- Tuesday LIVE: Zelensky Rejects Trump’s Peace Plan, Refuses To Cede Territory To Russia! Plus, Border Czar Homan Says Over 60K Smuggled Children Rescued & Senior US Diplomats Slam EU’s Censorship Against Americans on X --- --- The EU Insists Its X Fine Isn’t About Censorship. Here’s Why It Is. --- --- Zelensky Definitively Shuts Door On Trump Peace Plan, Won’t Cede Territory --- --- Canada Invests $34 Million In Chinese Drones Now Considered To Be ‘High Security Risks’ --- --- VIDEO: Ilhan Omar Panics After Her Slave Master Past Was Revealed! --- --- Syrians And Afghans Reach New Violent Crime Highs In Germany, Over 10X More Likely To Commit A Violent Crime Than A German --- ---



[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]