View Single Post
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 10-31-2019 , 12:22   Re: [Req] A better PRNG (Mersenne Twisted) module.
Reply With Quote #2

PHP Code:
using namespace std;

long GetLargeRand(int Min 0,int Max 2147483647)
{
    
mt19937 seed mt19937(std::random_device()());
    
uniform_int_distribution<int> = uniform_int_distribution<int>(Min,Max);

    return 
dist(seed);

Something like this is SFMT?
I did not see a reason to be outdated?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 10-31-2019 at 12:23.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY