As far as I know, Lua does not include Mersenne Twister. math.random() is just C rand().
As far as I know, Lua does not include Mersenne Twister. math.random() is just C rand().
LuaJIT bundles its own Tausworthe PRNG [1].
————
0. http://www.lua.org/manual/5.2/manual.html#pdf-math.random
The dice seems biased to certain numbers, and the spreadsheet has the same items come up more than mundane statistics would otherwise suggest. (A 1/50 roll landing on the same item 2-3 times in a row, multiple times per day?)
It's gotten to the point where my users don't want to use my bot for RPGs. I'll have to see if using SecureRandom#random_number produces any different results
CMRES is quite impressive, I get ~1500 MB/s out of it. Quite useful for generating large unique files for various testcases.