Raised This Month: $79 Target: $400

[Req] A better PRNG (Mersenne Twisted) module.

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Join Date: Jun 2016
Old 10-26-2019 , 22:41   [Req] A better PRNG (Mersenne Twisted) module.
Reply With Quote #1

Hello, can i request a better random number generator amxx module? How about to use SFMT?

More info about SFMT see http://www.math.sci.hiroshima-u.ac.j...FMT/index.html

I know that MT based module already existed but it was made 14 years ago, i believe it was out dated.
So we need an alternative for that.

Function that i need:
- generate random int - random_num_mt(min, max)
- generate random float - random_float_mt(min, max)

Thank you.
metal_upa is offline
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);


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

- 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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 06:41.

Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode